Skip to content
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

Add ensureSignedIn option to useAuth hook #176

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Conversation

nicknisi
Copy link
Contributor

Add ensureSignedIn: boolean as an option to useAuth hook.

function Component() {
  const auth = useAuth({ ensureSignedIn: true });
  return <div>{auth.user?.email</div>;
}

Fixes #173

@nicknisi nicknisi requested a review from PaulAsjes January 15, 2025 04:30
@nicknisi nicknisi merged commit eed18ef into main Jan 15, 2025
4 checks passed
@nicknisi nicknisi deleted the nicknisi/ensure-signed-in branch January 15, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

useAuth does not support passing ensureSignedIn
2 participants