Skip to content

Commit

Permalink
feat: expose userId in useAuth
Browse files Browse the repository at this point in the history
This will allow custom implementations to manually set the userId.
  • Loading branch information
marshallswain committed Mar 10, 2024
1 parent 356eefd commit a087a26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/use-auth/use-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export function useAuth<d = AuthenticateData>(options: UseAuthOptions) {
const loginRedirect = ref<string | Record<string, any> | null>(null)

return {
userId,
user,
error,
isPending,
Expand Down

0 comments on commit a087a26

Please sign in to comment.