Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

remix-auth-oauth2

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remix-auth-oauth2 - npm Package Compare versions

Comparing version 1.2.2 to 1.3.0

4

build/index.d.ts

@@ -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 {};

4

build/index.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc