New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

remix-auth-oauth2

Package Overview
Dependencies
Maintainers
0
Versions
26
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 3.2.1 to 3.2.2

4

build/index.d.ts
import { type SetCookieInit } from "@mjackson/headers";
import { CodeChallengeMethod, OAuth2Client, OAuth2RequestError, type OAuth2Tokens } from "arctic";
import { CodeChallengeMethod, OAuth2Client, OAuth2RequestError, type OAuth2Tokens, UnexpectedErrorResponseBodyError, UnexpectedResponseError } from "arctic";
import { Strategy } from "remix-auth/strategy";
type URLConstructor = ConstructorParameters<typeof URL>[0];
export { OAuth2RequestError, CodeChallengeMethod };
export { OAuth2RequestError, CodeChallengeMethod, UnexpectedResponseError, UnexpectedErrorResponseBodyError, };
export declare class OAuth2Strategy<User> extends Strategy<User, OAuth2Strategy.VerifyOptions> {

@@ -7,0 +7,0 @@ protected options: OAuth2Strategy.ConstructorOptions;

import { ObjectParser } from "@edgefirst-dev/data/parser";
import {} from "@mjackson/headers";
import { CodeChallengeMethod, OAuth2Client, OAuth2RequestError, generateCodeVerifier, generateState, } from "arctic";
import { CodeChallengeMethod, OAuth2Client, OAuth2RequestError, UnexpectedErrorResponseBodyError, UnexpectedResponseError, generateCodeVerifier, generateState, } from "arctic";
import createDebug from "debug";

@@ -10,3 +10,3 @@ import { Strategy } from "remix-auth/strategy";

const WELL_KNOWN = ".well-known/openid-configuration";
export { OAuth2RequestError, CodeChallengeMethod };
export { OAuth2RequestError, CodeChallengeMethod, UnexpectedResponseError, UnexpectedErrorResponseBodyError, };
export class OAuth2Strategy extends Strategy {

@@ -13,0 +13,0 @@ options;

@@ -30,3 +30,3 @@ import { SetCookie, type SetCookieInit } from "@mjackson/headers";

*/
set(state: string, verifier: string): void;
set(state: string, verifier?: string): void;
/**

@@ -33,0 +33,0 @@ * Check if the store has the given state

@@ -41,3 +41,4 @@ import { Cookie, SetCookie } from "@mjackson/headers";

this.states.add(state);
this.codeVerifiers.set(state, verifier);
if (verifier)
this.codeVerifiers.set(state, verifier);
}

@@ -44,0 +45,0 @@ /**

{
"name": "remix-auth-oauth2",
"version": "3.2.1",
"version": "3.2.2",
"description": "A strategy to use and implement OAuth2 framework for authentication with federated services like Google, Facebook, GitHub, etc.",

@@ -53,3 +53,3 @@ "license": "MIT",

"@mjackson/headers": "^0.9.0",
"arctic": "^2.3.0",
"arctic": "^3.0.0",
"debug": "^4.3.7"

@@ -56,0 +56,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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