-
Notifications
You must be signed in to change notification settings - Fork 246
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(nextjs,shared,backend,clerk-react): Introduce Protect for authorization #2170
Commits on Dec 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5f5bf7e - Browse repository at this point
Copy the full SHA 5f5bf7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9893370 - Browse repository at this point
Copy the full SHA 9893370View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb1bed5 - Browse repository at this point
Copy the full SHA fb1bed5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 153140b - Browse repository at this point
Copy the full SHA 153140bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ca8c64d - Browse repository at this point
Copy the full SHA ca8c64dView commit details -
Configuration menu - View commit details
-
Copy full SHA for be5aaee - Browse repository at this point
Copy the full SHA be5aaeeView commit details -
Configuration menu - View commit details
-
Copy full SHA for bf3cf34 - Browse repository at this point
Copy the full SHA bf3cf34View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a112db - Browse repository at this point
Copy the full SHA 1a112dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for a91dc74 - Browse repository at this point
Copy the full SHA a91dc74View commit details -
feat(types,nextjs,clerk-react,backend): Rename Gate to Protect
- Drop `some` from the `has` utility and Protect. Protect now accepts a `condition` prop where a function is expected with the `has` being exposed as the param. - Protect can now be used without required props. In this chae behaves as `<SignedIn>` if no authorization props are passed. - `has` will throw an error if neither `permission` or `role` is passed.
Configuration menu - View commit details
-
Copy full SHA for a55afe8 - Browse repository at this point
Copy the full SHA a55afe8View commit details -
feat(nextjs): Introduce
auth().protect()
for App RouterAllow per page protection in app router. This utility will automatically throw a 404 error if user is not authorized or authenticated. When `auth().protect()` is called - inside a page or layout file it will render the nearest `not-found` component set by the developer - inside a route handler it will return empty response body with a 404 status code
Configuration menu - View commit details
-
Copy full SHA for 6984390 - Browse repository at this point
Copy the full SHA 6984390View commit details -
Configuration menu - View commit details
-
Copy full SHA for 367a3b3 - Browse repository at this point
Copy the full SHA 367a3b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4dc9b9f - Browse repository at this point
Copy the full SHA 4dc9b9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a218c7 - Browse repository at this point
Copy the full SHA 7a218c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f154ad - Browse repository at this point
Copy the full SHA 3f154adView commit details -
Configuration menu - View commit details
-
Copy full SHA for d4f7d49 - Browse repository at this point
Copy the full SHA d4f7d49View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d323ad - Browse repository at this point
Copy the full SHA 1d323adView commit details -
fix(clerk-react): Utility
has
returns false when user isLoaded is t……rue and no user or org
Configuration menu - View commit details
-
Copy full SHA for a8d61dc - Browse repository at this point
Copy the full SHA a8d61dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 48d64c5 - Browse repository at this point
Copy the full SHA 48d64c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3a4c23 - Browse repository at this point
Copy the full SHA e3a4c23View commit details -
Configuration menu - View commit details
-
Copy full SHA for 819b6a0 - Browse repository at this point
Copy the full SHA 819b6a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c6e17e - Browse repository at this point
Copy the full SHA 3c6e17eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 64ad323 - Browse repository at this point
Copy the full SHA 64ad323View commit details -
Configuration menu - View commit details
-
Copy full SHA for 87ea852 - Browse repository at this point
Copy the full SHA 87ea852View commit details -
Revert "fix(nextjs,clerk-react,backend): Utility
has
is undefined w……hen user is signed out" This reverts commit cf736cc
Configuration menu - View commit details
-
Copy full SHA for 584c71c - Browse repository at this point
Copy the full SHA 584c71cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 79fff5a - Browse repository at this point
Copy the full SHA 79fff5aView commit details