Skip to content

Commit a087a26

Browse files
committed
feat: expose userId in useAuth
This will allow custom implementations to manually set the userId.
1 parent 356eefd commit a087a26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/use-auth/use-auth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export function useAuth<d = AuthenticateData>(options: UseAuthOptions) {
147147
const loginRedirect = ref<string | Record<string, any> | null>(null)
148148

149149
return {
150+
userId,
150151
user,
151152
error,
152153
isPending,

0 commit comments

Comments
 (0)