@mitreka/coreflow-types 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth.ts +4 -1
- package/package.json +1 -1
package/auth.ts
CHANGED
|
@@ -41,6 +41,7 @@ export type AccessUser = {
|
|
|
41
41
|
export type AuthAccessType = 'offline' | 'online';
|
|
42
42
|
export type AuthChallengeMethod = 'S256';
|
|
43
43
|
export type AuthGrantType = 'authorization_code' | 'refresh_token';
|
|
44
|
+
export type AuthPrompt = 'none' | 'select_account';
|
|
44
45
|
export type AuthResponseType = 'code' | 'token';
|
|
45
46
|
|
|
46
47
|
export type AuthorizationParam = {
|
|
@@ -53,11 +54,13 @@ export type AuthorizationParam = {
|
|
|
53
54
|
company_id: string;
|
|
54
55
|
error: string;
|
|
55
56
|
grant_type: AuthGrantType;
|
|
57
|
+
prompt: AuthPrompt
|
|
56
58
|
redirect_uri: string;
|
|
57
59
|
refresh_token: string;
|
|
58
60
|
response_type: AuthResponseType;
|
|
59
61
|
scope: string;
|
|
60
62
|
state: string;
|
|
63
|
+
token_version: number; // Custom key for token format compatibility. Remove it if not used by any client.
|
|
61
64
|
user_id: string;
|
|
62
65
|
};
|
|
63
66
|
|
|
@@ -66,7 +69,7 @@ export type AuthorizationCallback = Pick<AuthorizationParam, 'code' | 'error' |
|
|
|
66
69
|
/**
|
|
67
70
|
* Authorization exchange
|
|
68
71
|
*/
|
|
69
|
-
export type AuthorizationExchange = Pick<AuthorizationParam, 'client_id' | 'client_secret' | 'code' | 'code_verifier' | 'grant_type' | 'redirect_uri'>;
|
|
72
|
+
export type AuthorizationExchange = Pick<AuthorizationParam, 'client_id' | 'client_secret' | 'code' | 'code_verifier' | 'grant_type' | 'redirect_uri' | 'token_version'>;
|
|
70
73
|
|
|
71
74
|
/**
|
|
72
75
|
* Authorization refresh
|