Skip to content

Conversation

@diksipav
Copy link

No description provided.

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.

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
@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