remix-auth-auth0
Advanced tools
Comparing version 1.6.0 to 1.7.0
@@ -42,5 +42,7 @@ import { OAuth2Profile, OAuth2Strategy, OAuth2StrategyVerifyParams } from "remix-auth-oauth2"; | ||
updated_at?: string; | ||
org_id?: string; | ||
} | ||
export interface Auth0Profile extends OAuth2Profile { | ||
_json?: Auth0UserInfo; | ||
organizationId?: string; | ||
} | ||
@@ -47,0 +49,0 @@ export declare class Auth0Strategy<User> extends OAuth2Strategy<User, Auth0Profile, Auth0ExtraParams> { |
@@ -69,2 +69,5 @@ "use strict"; | ||
} | ||
if (data.org_id) { | ||
profile.organizationId = data.org_id; | ||
} | ||
return profile; | ||
@@ -71,0 +74,0 @@ } |
{ | ||
"name": "remix-auth-auth0", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"main": "./build/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./build/index.d.ts", |
@@ -86,2 +86,3 @@ # Auth0Strategy | ||
```tsx | ||
// app/routes/auth/logout.ts | ||
import type { ActionArgs } from "@remix-run/node"; | ||
@@ -95,3 +96,3 @@ | ||
const session = await getSession(request.headers.get("Cookie")); | ||
const logoutURL = new URL(process.env.AUTH0_LOGOUT_URL); | ||
const logoutURL = new URL(process.env.AUTH0_LOGOUT_URL); // i.e https://YOUR_TENANT.us.auth0.com/v2/logout | ||
@@ -98,0 +99,0 @@ logoutURL.searchParams.set("client_id", process.env.AUTH0_CLIENT_ID); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10222
135
124