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

Remove Anonymous Login in Certain Chats #476

Merged
merged 11 commits into from
Nov 28, 2023
Merged

Remove Anonymous Login in Certain Chats #476

merged 11 commits into from
Nov 28, 2023

Conversation

teodorus-nathaniel
Copy link
Contributor

No description provided.

src/constants/chat.ts Outdated Show resolved Hide resolved
import { useRouter } from 'next/router'
import { useCallback, useEffect, useRef } from 'react'

export default function useWithoutAnonLoginOptions() {
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor Author

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

@olehmell olehmell merged commit 405caea into main Nov 28, 2023
2 checks passed
@teodorus-nathaniel teodorus-nathaniel deleted the deploy/remove-anon branch December 27, 2023 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants