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

Rename signIn from useAuthActions to authorize #69

Open
IAlphaOmegaI opened this issue Sep 12, 2024 · 0 comments
Open

Rename signIn from useAuthActions to authorize #69

IAlphaOmegaI opened this issue Sep 12, 2024 · 0 comments

Comments

@IAlphaOmegaI
Copy link

signIn does make sense in most cases, but when implementing your own auth mechanism, or using a more traditional email password auth with resend, signIn("sign-up", ...) makes for a very bad time maintaining and reading.

I propose the name authorize or authenticate which is more encompassing and offers better readability for the future.

So TLDR from:

const { signIn } = useAuthActions() 

to

const { authorize } = useAuthActions()
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

No branches or pull requests

1 participant