remix-auth-oauth2
Advanced tools
Comparing version 3.2.1 to 3.2.2
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
39395
506
+ Addedarctic@3.2.0(transitive)
- Removedarctic@2.3.4(transitive)
Updatedarctic@^3.0.0