Skip to content

Commit

Permalink
feat: enable auth0 organization invites
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickHeneise committed Apr 12, 2023
1 parent 26530ca commit 57af1ae
Show file tree
Hide file tree
Showing 4 changed files with 1,225 additions and 1,096 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,25 @@ export default function Root() {
}
```
### With Organization Invitation
If you use Auth0 Organizations, you can pass through the `invitation`,
`organization` and `organization_name` query params to the Auth0 Universal Login
Experience. This will load the sign-up instead of the login form:
```jsx
// root.jsx/tsx
const [searchParams] = useSearchParams()
if (searchParams.invitation) {
auth0.setInvitation(
searchParams.invitation,
searchParams.organization,
searchParams.organization_name
)
}
```
### Logout
The logout happens in 3 steps:
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@
"@commitlint/config-conventional": "^17.4.4",
"@solidjs/router": "^0.8.2",
"dotenv": "^16.0.3",
"eslint": "^8.37.0",
"eslint": "^8.38.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-markdown": "^3.0.0",
"eslint-plugin-solid": "^0.12.0",
"husky": "^8.0.3",
"is-ci": "^3.0.1",
"lint-staged": "^13.2.0",
"lint-staged": "^13.2.1",
"prettier": "^2.8.7",
"solid-js": "^1.6.16",
"solid-start": "^0.2.24"
"solid-js": "^1.7.3",
"solid-start": "^0.2.26"
},
"peerDependencies": {
"@solidjs/router": "^0.7.0",
Expand Down
Loading

0 comments on commit 57af1ae

Please sign in to comment.