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

auth template: optional roles for requireAuth #5336

Merged
merged 4 commits into from
May 2, 2022

Conversation

Tobbe
Copy link
Member

@Tobbe Tobbe commented Apr 25, 2022

roles needs to be optional for requireAuth, otherwise you're not allowed to just do requireAuth() in a service in a TS project, which you should be.

A comment further up in the auth.ts template also says that roles is optional
image

@Tobbe Tobbe requested a review from dthyresson April 25, 2022 22:55
@netlify
Copy link

netlify bot commented Apr 25, 2022

Deploy Preview for redwoodjs-docs canceled.

Name Link
🔨 Latest commit 2aba908
🔍 Latest deploy log https://app.netlify.com/sites/redwoodjs-docs/deploys/626fd874719a0b0008b37e58

@Tobbe Tobbe added the release:fix This PR is a fix label Apr 25, 2022
Copy link
Contributor

@jtoar jtoar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will let @dthyresson have a look too but makes sense to me.

@jtoar jtoar merged commit 96956c8 into redwoodjs:main May 2, 2022
@jtoar jtoar modified the milestones: next-release, v1.4.0 May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix This PR is a fix
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants