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 auth remix #810

Merged
merged 19 commits into from
Jan 3, 2024
Merged

Add auth remix #810

merged 19 commits into from
Jan 3, 2024

Conversation

diksipav
Copy link
Contributor

No description provided.

packages/auth-remix/src/server.ts Outdated Show resolved Hide resolved
packages/auth-remix/src/server.ts Outdated Show resolved Hide resolved
packages/auth-remix/src/server.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@scotttrinh scotttrinh left a 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 Show resolved Hide resolved
packages/auth-remix/readme.md Outdated Show resolved Hide resolved
const isLoggedIn = await session.isLoggedIn();
const username = isLoggedIn
? (await session.client.querySingle<string>(
`select global currentUser.name`
Copy link
Member

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?

Copy link
Member

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.

Copy link
Collaborator

@scotttrinh scotttrinh left a 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 🙏

@diksipav diksipav merged commit df0b7b6 into master Jan 3, 2024
8 checks passed
@diksipav diksipav deleted the add-auth-remix branch January 3, 2024 15:55
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.

3 participants