Commit Graph

1374 Commits

Author SHA1 Message Date
Bereket Engida
ace859c381 chore: remove stripe warning 2025-07-18 20:49:38 -07:00
Bereket Engida
5b1b242a88 Merge branch 'main' into v1.3 2025-07-18 20:09:14 -07:00
rokitg
370e8515e5 feat: SIWE plugin (#2579)
* feat: first draft of SIWE plugin

* fix: run biome linter

* refactor(siwe): rename publicKey to walletAddress for clarity

 - Add ensName as an optional param from the client
 - Add emailDomainName to plugin options - fallback to getOrigin()
- Move schema to a separate file

* fix(siwe): update emailDomainName assignment to use nullish coalescing operator

* run biome linter

* fix(siwe): avatar field is not included in createUser call

* refactor(siwe): remove siwe dependency and implement nonce generation and message verification through plugin options

- Removed direct dependency on 'siwe' package.
- Introduced 'generateSiweNonce' and 'verifySiweMessage' as user functions
- Updated tests to reflect changes in nonce handling and message verification logic (WIP)

* feat: add anonymous flag to plugin options

* refactor(siwe): improve test coverage - anonymous flag, missing nonce & other edge cases

* feat(siwe): add checksum address validation using keccak256 + test case

* fix(siwe): refactor hashing utility to use @noble/hashes

* feat(siwe): enhance SIWE plugin with chainId support, strong typing, dedicated table for wallet adresses and more test coverage

* refactor(siwe): remove unused SIWE interfaces

* fix(siwe): PR review issues

* fix(siwe): rename const "siweClientPlugin" to "siweClient" for simplicity

* feat(siwe): add docs

* chore: fix lock file

* fix: account linking & code formatting

* run pnpm lint

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-07-18 19:21:55 -07:00
KinfeMichael Tariku
1a1594d7f9 feat: afterEmailVerification callback (#3046)
* fix: callback to run after successful email verification

* lint

* update

* chore: update

* callback label
2025-07-18 19:10:19 -07:00
KinfeMichael Tariku
68feed668f docs: add custom table name ref on jwks (#2996) 2025-07-18 19:05:34 -07:00
KinfeMichael Tariku
a342b61357 feat: onPasswordReset callback (#2994)
* fix: otp value and tries separator

* feat: onPasswordReset callback

* lint

* clean up

* test

* docs
2025-07-18 19:04:36 -07:00
KinfeMichael Tariku
3178c5fad8 docs: getting session from the context in db hook (#3051)
* docs: getting session from the context in db hook

* update

* update
2025-07-18 19:03:41 -07:00
KinfeMichael Tariku
1b2f383350 feat(sso): configurable provider limit (#3433) 2025-07-18 18:58:14 -07:00
Maxwell
7cc68b82f6 docs(faq): remove name, image, or email fields (#2688) 2025-07-18 18:54:26 -07:00
Maxwell
e954c93361 docs(typescript): warn ts inference error regarding tsconfig (#3055) 2025-07-18 18:53:57 -07:00
Maxwell
93698afd45 feat(organization): additionalFields for org, member, invitation & team (#3447)
* feat(org): additionalFields for org, member, invitation & team

* fix: tests

* chore: lint

* add: docs

* update(docs): improve wording

* feat: support client side inference

* chore: lint
2025-07-18 17:31:17 -07:00
Robi
5a24661fb6 refactor: pass both building and getRequestEvent from outside of library (#3449)
* refactor: Pass both building and getRequestEvent from outside of library
- Removes the need for importing from virtual modules at the expense of more user boilerplate

* chore: add Svelte and related dependencies to externals

* chore: lint

* refactor(docs): update SvelteKit integration docs with new building and getRequestEvent usage
2025-07-18 15:00:15 -07:00
Bereket Engida
7d03460470 feat: add an option to encrypt oauth tokens by default (#2552)
* feat: add an option to encrypt tokens by default

* feat(auth): add OAuth token encryption support

* refactor(auth): streamline token handling in OAuth callback by utilizing setTokenUtil

* refactor(auth): replace direct token handling with setTokenUtil for improved clarity and maintainability

* refactor(auth): unify token handling by utilizing setTokenUtil for access and refresh tokens

* docs(auth): enhance documentation for OAuth token encryption, clarifying security risks and benefits

* chore: cleanup

* update test
2025-07-18 14:00:48 -07:00
Alessandro Bortolin
41fb4d15a8 feat(username): add custom username normalization option (#3412)
* feat(username): add custom username normalization option

* add transformer

* handle nullish values

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-07-18 10:03:28 -07:00
KinfeMichael Tariku
f521d7bf11 docs: organization option for cancelPendingInvitationsOnReInvite (#3440)
* docs: organization option for canceling on reinvite

* default val

* lint
2025-07-18 10:02:46 -07:00
Dagmawi Babi
4c9479ee2b docs: automatic-tax-collection (#3415) 2025-07-17 21:09:42 -07:00
Maxwell
1ed38cd28b feat(docs): APIMethod, documents all server & client auth examples (#2577) 2025-07-17 16:20:10 -07:00
KinfeMichael Tariku
8bcc352856 docs: fix request lifecycle hooks example (#3434) 2025-07-17 15:48:06 -07:00
Bereket Engida
8fa4c9ce7e feat(stripe): pass context obejct to stripe plugin callbacks (#2990)
* feat(stripe): pass context obejct to stripe plugin callbacks

* cleanup

* cleanup

* cleanup

* chore: lint

* fix: tests

---------

Co-authored-by: ping-maxwell <maxwell.multinite@gmail.com>
2025-07-17 14:48:11 -07:00
KinfeMichael Tariku
c27ff747ce docs: callout on getSessionCookies on security check (#3110)
* docs: add callout for getSessionCookies

* clean up

* clean up
2025-07-17 14:47:30 -07:00
Bereket Engida
ea0fcdab70 Revert "feat(social-providers): add Faceit Social Provider (#3140)" (#3432)
This reverts commit 8792717b4b.
2025-07-17 10:11:45 -07:00
Matt Russell
8792717b4b feat(social-providers): add Faceit Social Provider (#3140)
* create faceit provider

* include new faceit provider

* updating docs to include faceit

* Update docs/content/docs/authentication/faceit.mdx

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* Update docs/components/builder/social-provider.tsx

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* formatting

* formatting

* formatting

* Update documentation

Updated to include callout about Faceit's Redirect URL requirements

* fix: docs

* chore: cleanup

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: ping-maxwell <maxwell.multinite@gmail.com>
2025-07-17 10:10:07 -07:00
Bereket Engida
56bd676534 Merge branch 'main' into v1.3 2025-07-17 10:08:46 -07:00
KinfeMichael Tariku
d9a925b315 docs: add logger option (#3171)
* docs/logging-docs

* update
2025-07-17 09:39:52 -07:00
Bereket Engida
07c52b252d refactor(docs): conditionally render LLM components and fix github broken links 2025-07-17 09:02:23 -07:00
Robi
0c4583c015 docs: add LLM copy button and view options components (#3423)
* feat: add LLM copy button and view options components
- update routing for LLM text generation, adding .mdx to a route now generates its .md repsresentation
- add rewrite from /docs/:path*mdx to /llms.txt/:path so ai can traverse the llms.txt as routes

* chore: lint

* chore: cubic
2025-07-17 01:16:04 -07:00
Thalles Passos
a16ea81db4 docs: add community maintained nestjs library (#3391) 2025-07-17 00:39:38 -07:00
Pekastel
ff54a99c55 feat(oidc): add support for public clients with PKCE authentication (#3091)
* feat(mcp): add support for public clients with PKCE authentication

  - Add conditional client authentication based on client type
  - Support public clients using PKCE without client_secret requirement
  - Add "none" to supported token endpoint authentication methods
  - Make clientSecret optional in database schema for public clients
  - Update client registration to handle public clients automatically
  - Maintain backward compatibility with confidential clients

  Fixes authentication issues with Claude.ai and other public OAuth clients
  that use PKCE (Proof Key for Code Exchange) without client secrets.

  Resolves #2813

* style: format code with prettier and fix trailing commas

* fix: resolve TypeScript errors in MCP plugin and tests

  - Fix missing loginPage in oidcConfig for MCP tests
  - Add type assertions for unknown response data types
  - Handle optional clientSecret with null coalescing operators
  - Update OIDC provider to support "none" auth method in metadata
  - Fix type compatibility issues between public and confidential clients

* fix: resolve TypeScript, Vitest, and CI compatibility issues

  - Fix missing loginPage in oidcConfig for MCP tests
  - Add type assertions for unknown response data types
  - Handle optional clientSecret with null coalescing operators
  - Update OIDC provider to support "none" auth method in metadata
  - Fix async describe callback to use synchronous setup with beforeAll
  - Use ephemeral port allocation to prevent CI port conflicts
  - Add explicit type annotations to avoid implicit any errors

* OpenAPI Schema Contract Fixed

* fix: resolve lint

* fix: ensure OAuth 2.0 spec compliance for public client registration

  - Fix public client registration to omit client_secret field entirely
  - Public clients now receive no client_secret property (was empty string)
  - Maintains backward compatibility with confidential clients
  - Addresses OAuth 2.0 Dynamic Client Registration (RFC 7591) requirements

* update docs

* remove any

* dont return secret on public client oidc

* remove any

* conditionally verify client secret

* update test

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-07-17 00:38:19 -07:00
Matteo Urso
f9a13e71dd chore: minor clarification on have-i-been-pwned plugin
Co-authored-by: INFOR\matteou <m.urso@esaedro.com>
2025-07-16 20:41:37 -07:00
Néfix Estrada
82b6974ffa feat(oidc): support JWKs with JWT plugin (#2755)
* fix(oidc): use JWT plugin if enabled to sign keys

* test(oidc-jwt): add comprehensive tests for OIDC JWT plugin functionality

* update docs

* refactor and cleanup

---------

Co-authored-by: Kryspin <321453+kziemski@users.noreply.github.com>
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-07-16 18:29:42 -07:00
BadPirate
8223ddd30d feat(oidc-provider): trusted clients (#2878)
* (feat:oidcProvider): Trusted Client implementation

- Add trustedClients configuration to OIDCOptions
- Add skipConsent property to Client interface
- Implement unified getClient() function for layered lookup
- Update authorize and token flows to support trusted clients
- Add comprehensive documentation and examples

* Apply suggestions from code review

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* lint

* fix: model name

* chore: cleanup

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-07-16 16:29:23 -07:00
Bereket Engida
5a55d7f1ee Merge branch 'main' into v1.3 2025-07-16 15:02:19 -07:00
KinfeMichael Tariku
dbaa342269 docs: fix plugin after hook handler example (#3372) 2025-07-14 22:16:42 -07:00
Maxwell
ea76ad1be6 docs: simplify database section on installation docs (#3383)
* docs: Improved database installation docs

* improve
2025-07-14 21:58:28 -07:00
Danny
f569ff1402 docs: extend rate limiting docs and add small warning (#3365)
* refactor: remove useless variable assignment

* refactor: remove unused param

* docs: extend rate limit docs to include info about connecting ip address and how it's used

* fix: linting
2025-07-14 09:38:06 -07:00
Ahmad Sandid
361876e9a6 docs: fix typo on hono cookies attribute example (#3366) 2025-07-14 09:35:12 -07:00
Dagmawi Babi
3fed4c0f70 docs: fixed errors and typos in plugin docs (#3349)
* fixed typo in plugin docs

* fixed weird sentence in plugin docs

* fixed ts error in plugins docs
2025-07-12 00:05:56 -07:00
Maxwell
3547c9d09a feat(organization): listUserInvitations adds the ability to list all invitations for a given user (#3121)
* feat(org): listUserInvitations

This PR introduces  in the org plugin.

* chore: lint
2025-07-10 23:58:12 -07:00
reslear
8ac324f64d docs(api-key): add example on how to get user session on the server (#3333)
how to get user session on server example
2025-07-10 23:56:35 -07:00
Maxwell
79f5f73291 feat(api-key): requireName to enforce name on keys (#3129)
* feat(api-key): `requireName` to force require name on keys

* chore: lint
2025-07-10 11:17:00 -07:00
KinfeMichael Tariku
a2029ef7fd fix: linking accounts for anon users with one tap and passkey (#3124)
* typo

* typo

* linking accounts

* clean up

* clean up

* clean up

* clean up
2025-07-10 11:15:37 -07:00
Ephraim Duncan
843482fe4a feat: add slack social provider (#3315)
* feat: add slack provider

* feat: add slack provider docs

* chore:lint

* chore:lint

* docs: add is new flag

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-07-10 11:11:34 -07:00
Bereket Engida
ed8fbb890f Merge remote-tracking branch 'origin/main' into v1.3 2025-07-10 10:12:11 -07:00
Ayush
816003b655 docs: add autumn billing plugin (#3331)
* docs: add Autumn Billing plugin

* use stepper for setup and cleanups

* add autumn's discord

* chore:lint

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-07-10 09:19:27 -07:00
Vagarth
bda8aabf33 fix: update Discord link to use the correct invite URL in blogs section 2025-07-09 22:37:15 +10:00
kmate19
991e200ff0 feat: add sendOnSignIn option to make sending verification link in sign in route explicit (#2422)
* feat(signin): make verification sending in sign in route explicit

* lint

* add option in docs

---------

Co-authored-by: Kinfe123 <kinfishtech@gmail.com>
2025-07-08 20:57:36 -07:00
Maxwell
e1579dc5d1 docs: add info about refresh tokens for Google & Github (#3305) 2025-07-08 08:32:45 -07:00
Ephraim Duncan
0bff4af96b feat: notion provider (#3068)
* feat: add notion provider

* chore: lint

* chore: add docs for notion provider

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-07-07 18:53:52 -07:00
KinfeMichael Tariku
3439fe954f feat(api-key): async support for verify key (#3204)
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-07-07 18:21:48 -07:00
Abdulrahman
cce6c2d74f docs(feat): added apple sign in JWT generation in docs (#2453)
* docs: Add guide for Sign In with Apple

* docs-feat: add apple JWT generator

* fix-lint: ran lint:fix to fix CI test

* chore: refactor to remove jose

* update docs

* chore: lock file

* fix test

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-07-07 17:21:10 -07:00