remix-auth-oauth2
Advanced tools
Comparing version 1.2.2 to 1.3.0
@@ -20,2 +20,3 @@ import { AppLoadContext, SessionStorage } from "@remix-run/server-runtime"; | ||
} | ||
declare type ResponseType = "id_token" | "token" | "id_token token" | "code" | "code id_token" | "code id_token token"; | ||
export interface OAuth2StrategyOptions { | ||
@@ -27,2 +28,3 @@ authorizationURL: string; | ||
callbackURL: string; | ||
responseType?: ResponseType; | ||
} | ||
@@ -85,2 +87,3 @@ export interface OAuth2StrategyVerifyParams<Profile extends OAuth2Profile, ExtraParams extends Record<string, unknown> = Record<string, never>> { | ||
protected callbackURL: string; | ||
protected responseType: ResponseType; | ||
private sessionStateKey; | ||
@@ -131,1 +134,2 @@ constructor(options: OAuth2StrategyOptions, verify: StrategyVerifyCallback<User, OAuth2StrategyVerifyParams<Profile, ExtraParams>>); | ||
} | ||
export {}; |
@@ -56,2 +56,3 @@ "use strict"; | ||
constructor(options, verify) { | ||
var _a; | ||
super(verify); | ||
@@ -65,2 +66,3 @@ this.name = "oauth2"; | ||
this.callbackURL = options.callbackURL; | ||
this.responseType = (_a = options.responseType) !== null && _a !== void 0 ? _a : "code"; | ||
} | ||
@@ -193,3 +195,3 @@ async authenticate(request, sessionStorage, options) { | ||
let params = new URLSearchParams(this.authorizationParams(new URL(request.url).searchParams)); | ||
params.set("response_type", "code"); | ||
params.set("response_type", this.responseType); | ||
params.set("client_id", this.clientID); | ||
@@ -196,0 +198,0 @@ params.set("redirect_uri", this.getCallbackURL(new URL(request.url)).toString()); |
{ | ||
"name": "remix-auth-oauth2", | ||
"version": "1.2.2", | ||
"version": "1.3.0", | ||
"main": "./build/index.js", | ||
@@ -58,3 +58,2 @@ "types": "./build/index.d.ts", | ||
"debug": "^4.3.4", | ||
"react-dom": "^18.1.0", | ||
"remix-auth": "^3.2.2", | ||
@@ -61,0 +60,0 @@ "uuid": "^8.3.2" |
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
24725
4
364
- Removedreact-dom@^18.1.0