-
Notifications
You must be signed in to change notification settings - Fork 67
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 auth remix #810
Add auth remix #810
Conversation
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.
Readme looks good! Small suggestion around the name
fallback.
packages/auth-remix/readme.md
Outdated
const isLoggedIn = await session.isLoggedIn(); | ||
const username = isLoggedIn | ||
? (await session.client.querySingle<string>( | ||
`select global currentUser.name` |
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.
I know this is just an example, but could it be confusing to use a custom global here? since currentUser
isn't part of the auth ext schema, but looks like it could be?
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.
Also presumably in this case, checking isLoggedIn
first would be redundant, as currentUser
would be null if not signed in.
0422098
to
6b872ec
Compare
Remove createUser func, should be in the client app. Clean package.json. Update signout func definitions.
Use npm cookie library for cookies. Update callback helper functions' names. Refactor parseCookies function to use cookies lib.
6b872ec
to
405c9d0
Compare
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.
Looks good! Thanks for the extra effort on getting the release action working 🙏
No description provided.