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

feat: add Auth0 authentication and authorization #14

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

blairjordan
Copy link
Owner

  • Use Auth0Provider in _app.jsx to wrap the app with authentication context
  • Show a Log In if user is not authenticated
  • Set Authorization header with bearer token from Auth0 when making GraphQL requests
  • Create current_player_id() function that returns the id of the player whose provider_id matches the current user's provider_id (from auth0).
  • Update functions to use current_player_id() instead of player_id parameter.

@blairjordan
Copy link
Owner Author

Just going to leave this PR open until I can be motivated to update CI tasks.

- Use Auth0Provider in _app.jsx to wrap the app with authentication context
- Show a Log In if user is not authenticated
- Set Authorization header with bearer token from Auth0 when making GraphQL requests
- Create current_player_id() function that returns the id of the player whose provider_id matches the current user's provider_id (from auth0).
- Update functions to use current_player_id() instead of player_id parameter.
@blairjordan blairjordan marked this pull request as draft July 13, 2023 17:51
@blairjordan blairjordan changed the title feat: Add Auth0 authentication and authorization feat: add Auth0 authentication and authorization Jul 13, 2023
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.

None yet

1 participant