Content-Length: 359969 | pFad | http://github.com/nextauthjs/next-auth/pull/11911/commits/fd4690b8f4f9cdcb1c67f814d8aedb2722914057

74 fix(adapter): transistion to surrealdb@^1.0.0 by dvanmali · Pull Request #11911 · nextauthjs/next-auth · GitHub
Skip to content

fix(adapter): transistion to surrealdb@^1.0.0 #11911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 31 commits into from
Jun 8, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
ccefb64
feat: transition from surrealdb.js beta to surrealdb@1.0.0
dvanmali Sep 26, 2024
b0a7bf9
fix: ensure correct adapter type is returned with verified is nulled …
dvanmali Sep 26, 2024
fd4690b
merge: fix conflicts from conflicts
dvanmali Sep 26, 2024
9756ad1
fix: remove log print on test
dvanmali Oct 2, 2024
14efdfe
feat: more AnyAuth login variables, support HTTP rpc connection, add …
dvanmali Oct 2, 2024
395f827
merge: with upstream/main
dvanmali Oct 2, 2024
1ee3a30
Merge branch 'main' of github.com:nextauthjs/next-auth
dvanmali Oct 2, 2024
d3aabc9
restore: changes
dvanmali Oct 2, 2024
34ebb2c
restore: changes
dvanmali Oct 2, 2024
bd1116b
doc: add all env variables available
dvanmali Oct 2, 2024
bc6b85c
fix: throw error not string
dvanmali Oct 2, 2024
36a9f2d
merge: upstream main
dvanmali Oct 9, 2024
c1af8dc
Merge branch 'main' into main
dvanmali Oct 25, 2024
102c8f0
Merge branch 'main' into main
dvanmali Nov 8, 2024
f15a43a
Merge branch 'main' into main
dvanmali Jan 14, 2025
1885d62
Merge branch 'main' into main
dvanmali Feb 10, 2025
59df6a3
Merge branch 'main' into main
dvanmali Mar 14, 2025
c5d2b61
Merge branch 'main' into main
ThangHuuVu May 10, 2025
5aade68
Merge branch 'main' into main
ThangHuuVu May 10, 2025
7c19313
merge: upstream
dvanmali May 12, 2025
89f9467
fix: uses surrealdb:^v1.3.0 for native reconnectivity, feat: add weba…
dvanmali May 13, 2025
293c64b
fix: creating user should use id() not randomUUID()
dvanmali May 13, 2025
fe650dd
fix: ignored files from prettier
dvanmali May 13, 2025
12c90ab
chore: upgrade lockfile as requested
dvanmali May 13, 2025
f7935b4
Merge branch 'main' into main
dvanmali May 13, 2025
5845c1f
Merge branch 'main' of github.com:nextauthjs/next-auth
dvanmali May 19, 2025
e0786c9
fix: tsc build errors
dvanmali May 19, 2025
7c27a9f
Merge branch 'main' of github.com:dvanmali/next-auth
dvanmali May 19, 2025
241426c
fix: tsc build errors
dvanmali May 19, 2025
c000302
Merge branch 'main' into main
dvanmali May 27, 2025
f27fa22
Merge branch 'main' into main
ndom91 Jun 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
merge: fix conflicts from conflicts
  • Loading branch information
dvanmali committed Sep 26, 2024
commit fd4690b8f4f9cdcb1c67f814d8aedb2722914057
2 changes: 1 addition & 1 deletion docs/pages/getting-started/adapters/surrealdb.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ The SurrealDB adapter does not handle connections automatically, so you will hav

### Authorization

#### Using WS:
#### Websocket Method:

With this configuration, we can use the websocket endpoint. Thus, the `AUTH_SURREAL_URL` should begin with `ws` or `wss`.

Expand Down
8 changes: 2 additions & 6 deletions docs/pages/guides/extending-the-session.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,12 @@ This is `name`, `email`, and `image`.

A common use case is to add the user's id to the session. Below it is shown how to do this based on the session strategy you are using.

<Callout type="info">
By default, the `id` property does not exist on `token` or `session`. See the [TypeScript](https://authjs.dev/getting-started/typescript) on how to add it.
</Callout>

## With JWT

To have access to the user id, add the following to your Auth.js configuration:

```ts filename="auth.ts"
// By default, the `id` property does not exist on `token` or `session`. See the [TypeScript](https://authjs.dev/getting-started/typescript) on how to add it.
providers,
callbacks: {
jwt({ token, user }) {
if (user) { // User is available during sign-in
Expand All @@ -48,7 +44,7 @@ Calls to `auth()` or `useSession()` will now have access to the user's id.
If you are using a database session strategy, you can add the user's id to the session by modifying the `session` callback:

```ts filename="auth.ts"
// By default, the `id` property does not exist on `session`. See the [TypeScript](https://authjs.dev/getting-started/typescript) on how to add it.
providers,
callbacks: {
session({ session, user }) {
session.user.id = user.id
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/nextauthjs/next-auth/pull/11911/commits/fd4690b8f4f9cdcb1c67f814d8aedb2722914057

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy