-
Notifications
You must be signed in to change notification settings - Fork 15
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
Remove Anonymous Login in Certain Chats #476
Conversation
import { useRouter } from 'next/router' | ||
import { useCallback, useEffect, useRef } from 'react' | ||
|
||
export default function useWithoutAnonLoginOptions() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename to useLoginOptions
and return
isLoginRequired
promptUserForLogin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For future it will be main option, so better call it more generic I guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to isNonAnonLoginRequired
because isLoginRequired is pretty ambiguous to me
No description provided.