Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit 57af1ae

Browse files
feat: enable auth0 organization invites
1 parent 26530ca commit 57af1ae

File tree

4 files changed

+1225
-1096
lines changed

4 files changed

+1225
-1096
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,25 @@ export default function Root() {
150150
}
151151
```
152152
153+
### With Organization Invitation
154+
155+
If you use Auth0 Organizations, you can pass through the `invitation`,
156+
`organization` and `organization_name` query params to the Auth0 Universal Login
157+
Experience. This will load the sign-up instead of the login form:
158+
159+
```jsx
160+
// root.jsx/tsx
161+
const [searchParams] = useSearchParams()
162+
163+
if (searchParams.invitation) {
164+
auth0.setInvitation(
165+
searchParams.invitation,
166+
searchParams.organization,
167+
searchParams.organization_name
168+
)
169+
}
170+
```
171+
153172
### Logout
154173
155174
The logout happens in 3 steps:

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,16 @@
6565
"@commitlint/config-conventional": "^17.4.4",
6666
"@solidjs/router": "^0.8.2",
6767
"dotenv": "^16.0.3",
68-
"eslint": "^8.37.0",
68+
"eslint": "^8.38.0",
6969
"eslint-config-prettier": "^8.8.0",
7070
"eslint-plugin-markdown": "^3.0.0",
7171
"eslint-plugin-solid": "^0.12.0",
7272
"husky": "^8.0.3",
7373
"is-ci": "^3.0.1",
74-
"lint-staged": "^13.2.0",
74+
"lint-staged": "^13.2.1",
7575
"prettier": "^2.8.7",
76-
"solid-js": "^1.6.16",
77-
"solid-start": "^0.2.24"
76+
"solid-js": "^1.7.3",
77+
"solid-start": "^0.2.26"
7878
},
7979
"peerDependencies": {
8080
"@solidjs/router": "^0.7.0",

0 commit comments

Comments
 (0)