Merge branch 'canary' into feat/mongo-support-string-id

This commit is contained in:
Maxwell
2025-11-04 03:13:22 +10:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -17,3 +17,4 @@ We encourage you to create any missing database adapters and maybe get added to
| [better-auth-instantdb](https://github.com/daveyplate/better-auth-instantdb) | [InstantDB](https://www.instantdb.com/) | <img src="https://github.com/daveycodez.png" className="rounded-full w-6 h-6 border opacity-70 m-0 inline mr-1" /> [daveycodez](https://github.com/daveycodez) |
| [@nerdfolio/remult-better-auth](https://github.com/nerdfolio/remult-better-auth) | [Remult](https://remult.dev/) | <img src="https://github.com/taivo.png" className="rounded-full w-6 h-6 border opacity-70 m-0 inline mr-1" /> [Tai Vo](https://github.com/taivo) |
| [pocketbase-better-auth](https://github.com/LightInn/pocketbase-better-auth) | [PocketBase](https://pocketbase.io/) | <img src="https://github.com/LightInn.png" className="rounded-full w-6 h-6 border opacity-70 m-0 inline mr-1" /> [LightInn](https://github.com/LightInn) |
| [@yultyyev/better-auth-firestore](https://github.com/yultyyev/better-auth-firestore) | [Firebase Firestore](https://firebase.google.com/docs/firestore) | <img src="https://github.com/yultyyev.png" className="rounded-full w-6 h-6 border opacity-70 m-0 inline mr-1" /> [yultyyev](https://github.com/yultyyev) |

View File

@@ -47,6 +47,9 @@ export const listUserAccounts = createAuthEndpoint(
accountId: {
type: "string",
},
userId: {
type: "string",
},
scopes: {
type: "array",
items: {
@@ -60,6 +63,7 @@ export const listUserAccounts = createAuthEndpoint(
"createdAt",
"updatedAt",
"accountId",
"userId",
"scopes",
],
},
@@ -83,6 +87,7 @@ export const listUserAccounts = createAuthEndpoint(
createdAt: a.createdAt,
updatedAt: a.updatedAt,
accountId: a.accountId,
userId: a.userId,
scopes: a.scope?.split(",") || [],
})),
);