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 logic to auto authorize role with usage of redirectAuthenticatedTo #4257

Merged
merged 4 commits into from
Nov 28, 2023

Conversation

siddhsuresh
Copy link
Member

@siddhsuresh siddhsuresh commented Nov 28, 2023

Closes: #4246

What are the changes and their implications?

Authroize the session with the given role when using useAuthenticatedBlitzContext's redirectAuthenticatedTo

Bug Checklist

  • Changeset added (run pnpm changeset in the root directory)

Copy link

changeset-bot bot commented Nov 28, 2023

🦋 Changeset detected

Latest commit: 5762544

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@blitzjs/auth Patch
blitz Patch
next-blitz-auth Patch
@blitzjs/rpc Patch
@blitzjs/next Patch
@blitzjs/codemod Patch
@blitzjs/config Patch
@blitzjs/generator Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kodiakhq kodiakhq bot merged commit 09e0c68 into main Nov 28, 2023
30 checks passed
@kodiakhq kodiakhq bot deleted the siddharth/role-in-authenication-redirect branch November 28, 2023 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

App Router: useAuthenticatedBlitzContext with redirectAuthenticatedTo results in infinite loop
3 participants