Comparing version 2.1.1 to 2.1.2
@@ -32,4 +32,14 @@ export declare const ContentType: { | ||
} | ||
/** The prompt parameter to be used for the authorization request. */ | ||
export declare enum Prompt { | ||
/** | ||
* The Authorization Server MUST prompt the End-User for consent | ||
* before returning information to the Client. | ||
*/ | ||
Consent = "consent", | ||
/** | ||
* The Authorization Server MUST prompt the End-User for re-authentication, | ||
* forcing the user to log in again. Note the there'll be no Refresh Token | ||
* returned in this case. | ||
*/ | ||
Login = "login" | ||
@@ -36,0 +46,0 @@ } |
@@ -33,5 +33,15 @@ const ContentType = { | ||
})(QueryKey || (QueryKey = {})); | ||
/** The prompt parameter to be used for the authorization request. */ | ||
var Prompt; | ||
(function (Prompt) { | ||
/** | ||
* The Authorization Server MUST prompt the End-User for consent | ||
* before returning information to the Client. | ||
*/ | ||
Prompt["Consent"] = "consent"; | ||
/** | ||
* The Authorization Server MUST prompt the End-User for re-authentication, | ||
* forcing the user to log in again. Note the there'll be no Refresh Token | ||
* returned in this case. | ||
*/ | ||
Prompt["Login"] = "login"; | ||
@@ -38,0 +48,0 @@ })(Prompt || (Prompt = {})); |
@@ -5,3 +5,14 @@ export type LogtoRequestErrorBody = { | ||
}; | ||
/** | ||
* A request function that accepts a `fetch`-like function parameters and returns | ||
* a promise with the parsed response body. | ||
*/ | ||
export type Requester = <T>(...args: Parameters<typeof fetch>) => Promise<T>; | ||
/** | ||
* The interaction mode to be used for the authorization request. Note it's not | ||
* a part of the OIDC standard, but a Logto-specific extension. | ||
* | ||
* - `signIn`: The authorization request will be initiated with a sign-in page. | ||
* - `signUp`: The authorization request will be initiated with a sign-up page. | ||
*/ | ||
export type InteractionMode = 'signIn' | 'signUp'; |
{ | ||
"name": "@logto/js", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"type": "module", | ||
@@ -28,4 +28,4 @@ "main": "./lib/index.cjs", | ||
"devDependencies": { | ||
"@silverhand/eslint-config": "^3.0.1", | ||
"@silverhand/ts-config": "^3.0.0", | ||
"@silverhand/eslint-config": "^4.0.1", | ||
"@silverhand/ts-config": "^4.0.0", | ||
"@swc/core": "^1.3.50", | ||
@@ -35,3 +35,3 @@ "@swc/jest": "^0.2.24", | ||
"@types/node": "^18.0.0", | ||
"eslint": "^8.38.0", | ||
"eslint": "^8.44.0", | ||
"jest": "^29.5.0", | ||
@@ -42,3 +42,3 @@ "jest-environment-jsdom": "^29.5.0", | ||
"nock": "^13.3.0", | ||
"prettier": "^2.8.7", | ||
"prettier": "^3.0.0", | ||
"rollup": "^3.20.2", | ||
@@ -45,0 +45,0 @@ "text-encoder": "^0.0.4", |
Sorry, the diff of this file is not supported yet
51785
1152