@okta/okta-auth-js 6.5.3 → 6.6.2
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/CHANGELOG.md +23 -0
- package/cjs/OktaAuth.js +23 -21
- package/cjs/OktaAuth.js.map +1 -1
- package/cjs/OktaUserAgent.js +2 -2
- package/cjs/ServiceManager.js +9 -9
- package/cjs/ServiceManager.js.map +1 -1
- package/cjs/TokenManager.js +6 -0
- package/cjs/TokenManager.js.map +1 -1
- package/cjs/errors/index.js +5 -0
- package/cjs/errors/index.js.map +1 -1
- package/cjs/http/request.js.map +1 -1
- package/cjs/idx/authenticate.js.map +1 -1
- package/cjs/idx/cancel.js.map +1 -1
- package/cjs/idx/emailVerify.js.map +1 -1
- package/cjs/idx/flow/FlowSpecification.js.map +1 -1
- package/cjs/idx/idxState/index.js +1 -1
- package/cjs/idx/idxState/index.js.map +1 -1
- package/cjs/idx/idxState/v1/generateIdxAction.js +2 -4
- package/cjs/idx/idxState/v1/generateIdxAction.js.map +1 -1
- package/cjs/idx/idxState/v1/idxResponseParser.js.map +1 -1
- package/cjs/idx/idxState/v1/makeIdxState.js.map +1 -1
- package/cjs/idx/idxState/v1/remediationParser.js.map +1 -1
- package/cjs/idx/interact.js +1 -3
- package/cjs/idx/interact.js.map +1 -1
- package/cjs/idx/introspect.js.map +1 -1
- package/cjs/idx/poll.js.map +1 -1
- package/cjs/idx/proceed.js.map +1 -1
- package/cjs/idx/recoverPassword.js.map +1 -1
- package/cjs/idx/register.js.map +1 -1
- package/cjs/idx/remediate.js +8 -12
- package/cjs/idx/remediate.js.map +1 -1
- package/cjs/idx/remediators/Base/AuthenticatorData.js.map +1 -1
- package/cjs/idx/remediators/Base/Remediator.js.map +1 -1
- package/cjs/idx/remediators/Base/SelectAuthenticator.js.map +1 -1
- package/cjs/idx/remediators/Base/VerifyAuthenticator.js.map +1 -1
- package/cjs/idx/remediators/EnrollPoll.js.map +1 -1
- package/cjs/idx/remediators/EnrollmentChannelData.js.map +1 -1
- package/cjs/idx/remediators/GenericRemediator/GenericRemediator.js +1 -3
- package/cjs/idx/remediators/GenericRemediator/GenericRemediator.js.map +1 -1
- package/cjs/idx/remediators/GenericRemediator/util.js +7 -1
- package/cjs/idx/remediators/GenericRemediator/util.js.map +1 -1
- package/cjs/idx/remediators/SelectEnrollmentChannel.js.map +1 -1
- package/cjs/idx/run.js +8 -10
- package/cjs/idx/run.js.map +1 -1
- package/cjs/idx/startTransaction.js.map +1 -1
- package/cjs/idx/transactionMeta.js.map +1 -1
- package/cjs/idx/types/api.js.map +1 -1
- package/cjs/idx/unlockAccount.js.map +1 -1
- package/cjs/idx/util.js +22 -27
- package/cjs/idx/util.js.map +1 -1
- package/cjs/oidc/endpoints/token.js.map +1 -1
- package/cjs/oidc/endpoints/well-known.js.map +1 -1
- package/cjs/oidc/exchangeCodeForTokens.js.map +1 -1
- package/cjs/oidc/getToken.js.map +1 -1
- package/cjs/oidc/getUserInfo.js.map +1 -1
- package/cjs/oidc/getWithPopup.js.map +1 -1
- package/cjs/oidc/getWithRedirect.js.map +1 -1
- package/cjs/oidc/getWithoutPrompt.js.map +1 -1
- package/cjs/oidc/handleOAuthResponse.js +1 -3
- package/cjs/oidc/handleOAuthResponse.js.map +1 -1
- package/cjs/oidc/renewToken.js.map +1 -1
- package/cjs/oidc/renewTokensWithRefresh.js +26 -15
- package/cjs/oidc/renewTokensWithRefresh.js.map +1 -1
- package/cjs/oidc/revokeToken.js.map +1 -1
- package/cjs/oidc/util/browser.js.map +1 -1
- package/cjs/oidc/util/defaultTokenParams.js.map +1 -1
- package/cjs/oidc/util/errors.js +8 -0
- package/cjs/oidc/util/errors.js.map +1 -1
- package/cjs/oidc/util/loginRedirect.js.map +1 -1
- package/cjs/oidc/util/oauth.js.map +1 -1
- package/cjs/oidc/util/oauthMeta.js.map +1 -1
- package/cjs/oidc/util/prepareTokenParams.js.map +1 -1
- package/cjs/oidc/util/validateClaims.js.map +1 -1
- package/cjs/oidc/verifyToken.js.map +1 -1
- package/cjs/options/index.js +5 -2
- package/cjs/options/index.js.map +1 -1
- package/cjs/tx/AuthTransaction.js +1 -1
- package/cjs/tx/AuthTransaction.js.map +1 -1
- package/cjs/tx/api.js +3 -5
- package/cjs/tx/api.js.map +1 -1
- package/cjs/tx/poll.js +1 -3
- package/cjs/tx/poll.js.map +1 -1
- package/dist/okta-auth-js.min.js +1 -1
- package/dist/okta-auth-js.min.js.map +1 -1
- package/dist/okta-auth-js.umd.js +1 -1
- package/dist/okta-auth-js.umd.js.map +1 -1
- package/esm/esm.browser.js +577 -446
- package/esm/esm.browser.js.map +1 -1
- package/esm/esm.node.mjs +577 -446
- package/esm/esm.node.mjs.map +1 -1
- package/lib/OktaAuth.d.ts +4 -4
- package/lib/ServiceManager.d.ts +2 -2
- package/lib/TokenManager.d.ts +1 -0
- package/lib/errors/index.d.ts +2 -1
- package/lib/http/request.d.ts +4 -4
- package/lib/idx/authenticate.d.ts +2 -2
- package/lib/idx/cancel.d.ts +2 -2
- package/lib/idx/emailVerify.d.ts +2 -2
- package/lib/idx/flow/FlowSpecification.d.ts +2 -2
- package/lib/idx/idxState/index.d.ts +3 -3
- package/lib/idx/idxState/v1/generateIdxAction.d.ts +2 -2
- package/lib/idx/idxState/v1/idxResponseParser.d.ts +3 -3
- package/lib/idx/idxState/v1/makeIdxState.d.ts +3 -3
- package/lib/idx/idxState/v1/remediationParser.d.ts +2 -2
- package/lib/idx/interact.d.ts +2 -2
- package/lib/idx/introspect.d.ts +2 -2
- package/lib/idx/poll.d.ts +2 -2
- package/lib/idx/proceed.d.ts +3 -3
- package/lib/idx/recoverPassword.d.ts +2 -2
- package/lib/idx/register.d.ts +2 -2
- package/lib/idx/remediate.d.ts +2 -2
- package/lib/idx/remediators/Base/AuthenticatorData.d.ts +2 -2
- package/lib/idx/remediators/Base/Remediator.d.ts +2 -2
- package/lib/idx/remediators/Base/SelectAuthenticator.d.ts +2 -2
- package/lib/idx/remediators/Base/VerifyAuthenticator.d.ts +2 -2
- package/lib/idx/remediators/EnrollPoll.d.ts +2 -2
- package/lib/idx/remediators/EnrollmentChannelData.d.ts +2 -2
- package/lib/idx/remediators/GenericRemediator/GenericRemediator.d.ts +2 -2
- package/lib/idx/remediators/SelectEnrollmentChannel.d.ts +2 -2
- package/lib/idx/run.d.ts +2 -2
- package/lib/idx/startTransaction.d.ts +2 -2
- package/lib/idx/transactionMeta.d.ts +7 -7
- package/lib/idx/types/api.d.ts +0 -1
- package/lib/idx/unlockAccount.d.ts +2 -2
- package/lib/idx/util.d.ts +6 -6
- package/lib/oidc/endpoints/token.d.ts +2 -2
- package/lib/oidc/endpoints/well-known.d.ts +3 -3
- package/lib/oidc/exchangeCodeForTokens.d.ts +2 -2
- package/lib/oidc/getToken.d.ts +2 -2
- package/lib/oidc/getUserInfo.d.ts +2 -2
- package/lib/oidc/getWithPopup.d.ts +2 -2
- package/lib/oidc/getWithRedirect.d.ts +2 -2
- package/lib/oidc/getWithoutPrompt.d.ts +2 -2
- package/lib/oidc/handleOAuthResponse.d.ts +2 -2
- package/lib/oidc/renewToken.d.ts +2 -2
- package/lib/oidc/renewTokensWithRefresh.d.ts +2 -2
- package/lib/oidc/revokeToken.d.ts +2 -2
- package/lib/oidc/util/browser.d.ts +2 -2
- package/lib/oidc/util/defaultTokenParams.d.ts +2 -2
- package/lib/oidc/util/errors.d.ts +3 -2
- package/lib/oidc/util/loginRedirect.d.ts +4 -4
- package/lib/oidc/util/oauth.d.ts +4 -4
- package/lib/oidc/util/oauthMeta.d.ts +2 -2
- package/lib/oidc/util/prepareTokenParams.d.ts +5 -5
- package/lib/oidc/util/validateClaims.d.ts +2 -2
- package/lib/oidc/verifyToken.d.ts +2 -2
- package/lib/tx/api.d.ts +2 -3
- package/lib/types/OktaAuthOptions.d.ts +2 -2
- package/lib/types/Service.d.ts +2 -2
- package/lib/types/TokenManager.d.ts +1 -0
- package/lib/types/UserClaims.d.ts +4 -1
- package/lib/types/api.d.ts +28 -8
- package/package.json +13 -23
package/lib/OktaAuth.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { OktaAuthInterface, OktaAuthOptions, AccessToken, RefreshToken, TokenAPI, FeaturesAPI, CryptoAPI, WebauthnAPI, SignoutAPI, FingerprintAPI, UserClaims, SigninWithRedirectOptions, SigninWithCredentialsOptions, SignoutOptions, Tokens, ForgotPasswordOptions, VerifyRecoveryTokenOptions, TransactionAPI, SessionAPI, SigninAPI, PkceAPI, SigninOptions, IdxAPI, SignoutRedirectUrlOptions, HttpAPI, RequestOptions, IsAuthenticatedOptions, OAuthResponseType } from './types';
|
|
12
|
+
import { OktaAuthInterface, OktaAuthOptions, AccessToken, RefreshToken, TokenAPI, FeaturesAPI, CryptoAPI, WebauthnAPI, SignoutAPI, FingerprintAPI, UserClaims, SigninWithRedirectOptions, SigninWithCredentialsOptions, SignoutOptions, Tokens, ForgotPasswordOptions, VerifyRecoveryTokenOptions, TransactionAPI, SessionAPI, SigninAPI, PkceAPI, SigninOptions, IdxAPI, SignoutRedirectUrlOptions, HttpAPI, RequestOptions, IsAuthenticatedOptions, OAuthResponseType, CustomUserClaims } from './types';
|
|
13
13
|
import { AuthTransaction } from './tx';
|
|
14
14
|
import { TokenManager } from './TokenManager';
|
|
15
15
|
import { ServiceManager } from './ServiceManager';
|
|
@@ -43,8 +43,8 @@ declare class OktaAuth implements OktaAuthInterface, SigninAPI, SignoutAPI {
|
|
|
43
43
|
handleLogin: boolean;
|
|
44
44
|
};
|
|
45
45
|
constructor(args: OktaAuthOptions);
|
|
46
|
-
start(): void
|
|
47
|
-
stop(): void
|
|
46
|
+
start(): Promise<void>;
|
|
47
|
+
stop(): Promise<void>;
|
|
48
48
|
setHeaders(headers: any): void;
|
|
49
49
|
signIn(opts: SigninOptions): Promise<AuthTransaction>;
|
|
50
50
|
signInWithCredentials(opts: SigninWithCredentialsOptions): Promise<AuthTransaction>;
|
|
@@ -56,7 +56,7 @@ declare class OktaAuth implements OktaAuthInterface, SigninAPI, SignoutAPI {
|
|
|
56
56
|
signOut(options?: SignoutOptions): Promise<void>;
|
|
57
57
|
webfinger(opts: any): Promise<object>;
|
|
58
58
|
isAuthenticated(options?: IsAuthenticatedOptions): Promise<boolean>;
|
|
59
|
-
getUser(): Promise<UserClaims
|
|
59
|
+
getUser<T extends CustomUserClaims = CustomUserClaims>(): Promise<UserClaims<T>>;
|
|
60
60
|
getIdToken(): string | undefined;
|
|
61
61
|
getAccessToken(): string | undefined;
|
|
62
62
|
getRefreshToken(): string | undefined;
|
package/lib/ServiceManager.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare class ServiceManager implements ServiceManagerInterface {
|
|
|
27
27
|
isLeader(): boolean;
|
|
28
28
|
hasLeader(): boolean | undefined;
|
|
29
29
|
isLeaderRequired(): boolean;
|
|
30
|
-
start(): void
|
|
31
|
-
stop(): void
|
|
30
|
+
start(): Promise<void>;
|
|
31
|
+
stop(): Promise<void>;
|
|
32
32
|
getService(name: string): ServiceInterface | undefined;
|
|
33
33
|
private startServices;
|
|
34
34
|
private stopServices;
|
package/lib/TokenManager.d.ts
CHANGED
|
@@ -46,5 +46,6 @@ export declare class TokenManager implements TokenManagerInterface {
|
|
|
46
46
|
clearPendingRemoveTokens(): void;
|
|
47
47
|
getTokensFromStorageValue(value: any): any;
|
|
48
48
|
updateRefreshToken(token: RefreshToken): void;
|
|
49
|
+
removeRefreshToken(): void;
|
|
49
50
|
addPendingRemoveFlags(): void;
|
|
50
51
|
}
|
package/lib/errors/index.d.ts
CHANGED
|
@@ -14,4 +14,5 @@ import AuthPollStopError from './AuthPollStopError';
|
|
|
14
14
|
import AuthSdkError from './AuthSdkError';
|
|
15
15
|
import OAuthError from './OAuthError';
|
|
16
16
|
declare function isAuthApiError(obj: any): obj is AuthApiError;
|
|
17
|
-
|
|
17
|
+
declare function isOAuthError(obj: any): obj is OAuthError;
|
|
18
|
+
export { isAuthApiError, isOAuthError, AuthApiError, AuthPollStopError, AuthSdkError, OAuthError };
|
package/lib/http/request.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
|
-
import {
|
|
14
|
-
export declare function httpRequest(sdk:
|
|
15
|
-
export declare function get(sdk:
|
|
16
|
-
export declare function post(sdk:
|
|
13
|
+
import { OktaAuthHttpInterface, RequestOptions, RequestData } from '../types';
|
|
14
|
+
export declare function httpRequest(sdk: OktaAuthHttpInterface, options: RequestOptions): Promise<any>;
|
|
15
|
+
export declare function get(sdk: OktaAuthHttpInterface, url: string, options?: RequestOptions): Promise<any>;
|
|
16
|
+
export declare function post(sdk: OktaAuthHttpInterface, url: string, args?: RequestData, options?: RequestOptions): Promise<any>;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
export declare function authenticate(authClient:
|
|
12
|
+
import { OktaAuthIdxInterface, IdxTransaction, AuthenticationOptions } from '../types';
|
|
13
|
+
export declare function authenticate(authClient: OktaAuthIdxInterface, options?: AuthenticationOptions): Promise<IdxTransaction>;
|
package/lib/idx/cancel.d.ts
CHANGED
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
export declare function cancel(authClient:
|
|
12
|
+
import { OktaAuthIdxInterface, CancelOptions } from '../types';
|
|
13
|
+
export declare function cancel(authClient: OktaAuthIdxInterface, options?: CancelOptions): Promise<import("./types/api").IdxTransaction>;
|
package/lib/idx/emailVerify.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { OktaAuthIdxInterface } from '../types';
|
|
13
13
|
import CustomError from '../errors/CustomError';
|
|
14
14
|
export interface EmailVerifyCallbackResponse {
|
|
15
15
|
state: string;
|
|
@@ -23,4 +23,4 @@ export declare class EmailVerifyCallbackError extends CustomError {
|
|
|
23
23
|
export declare function isEmailVerifyCallbackError(error: Error): boolean;
|
|
24
24
|
export declare function isEmailVerifyCallback(urlPath: string): boolean;
|
|
25
25
|
export declare function parseEmailVerifyCallback(urlPath: string): EmailVerifyCallbackResponse;
|
|
26
|
-
export declare function handleEmailVerifyCallback(authClient:
|
|
26
|
+
export declare function handleEmailVerifyCallback(authClient: OktaAuthIdxInterface, search: string): Promise<import("./types/api").IdxTransaction | undefined>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OktaAuthIdxInterface, FlowIdentifier } from '../../types';
|
|
2
2
|
import { RemediationFlow } from './RemediationFlow';
|
|
3
3
|
export interface FlowSpecification {
|
|
4
4
|
flow: FlowIdentifier;
|
|
@@ -6,4 +6,4 @@ export interface FlowSpecification {
|
|
|
6
6
|
actions?: string[];
|
|
7
7
|
withCredentials?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare function getFlowSpecification(oktaAuth:
|
|
9
|
+
export declare function getFlowSpecification(oktaAuth: OktaAuthIdxInterface, flow?: FlowIdentifier): FlowSpecification;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IdxResponse, RawIdxResponse } from '../types/idx-js';
|
|
1
|
+
import { OktaAuthIdxInterface } from '../../types';
|
|
2
|
+
import { IdxResponse, IdxToPersist, RawIdxResponse } from '../types/idx-js';
|
|
3
3
|
export declare const parsersForVersion: (version: any) => {
|
|
4
4
|
makeIdxState: typeof import("./v1/makeIdxState").makeIdxState;
|
|
5
5
|
};
|
|
6
6
|
export declare function validateVersionConfig(version: any): void;
|
|
7
|
-
export declare function makeIdxState(authClient:
|
|
7
|
+
export declare function makeIdxState(authClient: OktaAuthIdxInterface, rawIdxResponse: RawIdxResponse, toPersist: IdxToPersist, requestDidSucceed: boolean): IdxResponse;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { OktaAuthIdxInterface } from '../../../types';
|
|
13
13
|
import { IdxActionFunction } from '../../types/idx-js';
|
|
14
|
-
declare const generateIdxAction: (authClient:
|
|
14
|
+
declare const generateIdxAction: (authClient: OktaAuthIdxInterface, actionDefinition: any, toPersist: any) => IdxActionFunction;
|
|
15
15
|
export default generateIdxAction;
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
export declare const parseNonRemediations: (authClient:
|
|
12
|
+
import { OktaAuthIdxInterface } from '../../../types';
|
|
13
|
+
export declare const parseNonRemediations: (authClient: OktaAuthIdxInterface, idxResponse: any, toPersist?: {}) => {
|
|
14
14
|
context: {};
|
|
15
15
|
actions: {};
|
|
16
16
|
};
|
|
17
|
-
export declare const parseIdxResponse: (authClient:
|
|
17
|
+
export declare const parseIdxResponse: (authClient: OktaAuthIdxInterface, idxResponse: any, toPersist?: {}) => {
|
|
18
18
|
remediations: IdxRemediation[];
|
|
19
19
|
context: any;
|
|
20
20
|
actions: any;
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { IdxResponse } from '../../types/idx-js';
|
|
13
|
-
import {
|
|
14
|
-
export declare function makeIdxState(authClient:
|
|
12
|
+
import { IdxResponse, IdxToPersist } from '../../types/idx-js';
|
|
13
|
+
import { OktaAuthIdxInterface, RawIdxResponse } from '../../../types';
|
|
14
|
+
export declare function makeIdxState(authClient: OktaAuthIdxInterface, idxResponse: RawIdxResponse, toPersist: IdxToPersist, requestDidSucceed: boolean): IdxResponse;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
export declare const generateRemediationFunctions: (authClient:
|
|
12
|
+
import { OktaAuthIdxInterface } from '../../../types';
|
|
13
|
+
export declare const generateRemediationFunctions: (authClient: OktaAuthIdxInterface, remediationValue: any, toPersist?: {}) => any;
|
package/lib/idx/interact.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { OktaAuthIdxInterface, InteractOptions, InteractResponse } from '../types';
|
|
13
13
|
export interface InteractParams {
|
|
14
14
|
client_id: string;
|
|
15
15
|
scope: string;
|
|
@@ -22,4 +22,4 @@ export interface InteractParams {
|
|
|
22
22
|
client_secret?: string;
|
|
23
23
|
max_age?: string | number;
|
|
24
24
|
}
|
|
25
|
-
export declare function interact(authClient:
|
|
25
|
+
export declare function interact(authClient: OktaAuthIdxInterface, options?: InteractOptions): Promise<InteractResponse>;
|
package/lib/idx/introspect.d.ts
CHANGED
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { IntrospectOptions,
|
|
12
|
+
import { IntrospectOptions, OktaAuthIdxInterface } from '../types';
|
|
13
13
|
import { IdxResponse } from './types/idx-js';
|
|
14
|
-
export declare function introspect(authClient:
|
|
14
|
+
export declare function introspect(authClient: OktaAuthIdxInterface, options?: IntrospectOptions): Promise<IdxResponse>;
|
package/lib/idx/poll.d.ts
CHANGED
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { IdxPollOptions, IdxTransaction,
|
|
13
|
-
export declare function poll(authClient:
|
|
12
|
+
import { IdxPollOptions, IdxTransaction, OktaAuthIdxInterface } from '../types';
|
|
13
|
+
export declare function poll(authClient: OktaAuthIdxInterface, options?: IdxPollOptions): Promise<IdxTransaction>;
|
package/lib/idx/proceed.d.ts
CHANGED
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
export declare function canProceed(authClient:
|
|
14
|
-
export declare function proceed(authClient:
|
|
12
|
+
import { OktaAuthIdxInterface, IdxTransaction, ProceedOptions } from '../types';
|
|
13
|
+
export declare function canProceed(authClient: OktaAuthIdxInterface, options?: ProceedOptions): boolean;
|
|
14
|
+
export declare function proceed(authClient: OktaAuthIdxInterface, options?: ProceedOptions): Promise<IdxTransaction>;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
export declare function recoverPassword(authClient:
|
|
12
|
+
import { OktaAuthIdxInterface, PasswordRecoveryOptions, IdxTransaction } from '../types';
|
|
13
|
+
export declare function recoverPassword(authClient: OktaAuthIdxInterface, options?: PasswordRecoveryOptions): Promise<IdxTransaction>;
|
package/lib/idx/register.d.ts
CHANGED
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { RegistrationOptions, IdxTransaction,
|
|
13
|
-
export declare function register(authClient:
|
|
12
|
+
import { RegistrationOptions, IdxTransaction, OktaAuthIdxInterface } from '../types';
|
|
13
|
+
export declare function register(authClient: OktaAuthIdxInterface, options?: RegistrationOptions): Promise<IdxTransaction>;
|
package/lib/idx/remediate.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { OktaAuthIdxInterface } from '../types';
|
|
13
13
|
import { RemediationValues } from './remediators';
|
|
14
14
|
import { RemediateOptions, RemediationResponse } from './types';
|
|
15
15
|
import { IdxResponse, IdxActionParams } from './types/idx-js';
|
|
@@ -18,4 +18,4 @@ export interface RemediateActionWithOptionalParams {
|
|
|
18
18
|
params?: IdxActionParams;
|
|
19
19
|
}
|
|
20
20
|
export declare type RemediateAction = string | RemediateActionWithOptionalParams;
|
|
21
|
-
export declare function remediate(authClient:
|
|
21
|
+
export declare function remediate(authClient: OktaAuthIdxInterface, idxResponse: IdxResponse, values: RemediationValues, options: RemediateOptions): Promise<RemediationResponse>;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Remediator, RemediationValues } from './Remediator';
|
|
13
13
|
import { IdxRemediationValue, IdxOption, IdxRemediation, IdxAuthenticator } from '../../types/idx-js';
|
|
14
|
-
import {
|
|
14
|
+
import { OktaAuthIdxInterface } from '../../../types';
|
|
15
15
|
export declare type AuthenticatorDataValues = RemediationValues & {
|
|
16
16
|
methodType?: string;
|
|
17
17
|
};
|
|
@@ -21,7 +21,7 @@ export declare class AuthenticatorData<T extends AuthenticatorDataValues = Authe
|
|
|
21
21
|
protected formatAuthenticatorData(): void;
|
|
22
22
|
protected getAuthenticatorData(): import("../../types").Authenticator | undefined;
|
|
23
23
|
canRemediate(): boolean;
|
|
24
|
-
getNextStep(authClient:
|
|
24
|
+
getNextStep(authClient: OktaAuthIdxInterface): {
|
|
25
25
|
options: IdxOption[];
|
|
26
26
|
name: string;
|
|
27
27
|
authenticator?: IdxAuthenticator | undefined;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { NextStep, IdxMessage, Authenticator, Input, RemediateOptions } from '../../types';
|
|
13
13
|
import { IdxAuthenticator, IdxRemediation, IdxContext } from '../../types/idx-js';
|
|
14
|
-
import {
|
|
14
|
+
import { OktaAuthIdxInterface } from '../../../types';
|
|
15
15
|
export declare type IdxToRemediationValueMap = Record<string, string[]>;
|
|
16
16
|
export interface RemediationValues {
|
|
17
17
|
stateHandle?: string;
|
|
@@ -35,7 +35,7 @@ export declare class Remediator<T extends RemediationValues = RemediationValues>
|
|
|
35
35
|
canRemediate(): boolean;
|
|
36
36
|
getData(key?: string): any;
|
|
37
37
|
hasData(key: string): boolean;
|
|
38
|
-
getNextStep(_authClient:
|
|
38
|
+
getNextStep(_authClient: OktaAuthIdxInterface, _context?: IdxContext): NextStep;
|
|
39
39
|
getInputs(): Input[];
|
|
40
40
|
static getMessages(remediation: IdxRemediation): IdxMessage[] | undefined;
|
|
41
41
|
getValuesAfterProceed(): T;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { Remediator, RemediationValues } from './Remediator';
|
|
13
13
|
import { IdxRemediationValue } from '../../types/idx-js';
|
|
14
14
|
import { Authenticator } from '../../types';
|
|
15
|
-
import {
|
|
15
|
+
import { OktaAuthIdxInterface } from '../../../types';
|
|
16
16
|
export declare type SelectAuthenticatorValues = RemediationValues & {
|
|
17
17
|
authenticator?: string | Authenticator;
|
|
18
18
|
};
|
|
@@ -21,7 +21,7 @@ export declare class SelectAuthenticator<T extends SelectAuthenticatorValues = S
|
|
|
21
21
|
selectedOption?: any;
|
|
22
22
|
findMatchedOption(authenticators: any, options: any): any;
|
|
23
23
|
canRemediate(): boolean;
|
|
24
|
-
getNextStep(authClient:
|
|
24
|
+
getNextStep(authClient: OktaAuthIdxInterface): {
|
|
25
25
|
options: {
|
|
26
26
|
label: string;
|
|
27
27
|
value: string;
|
|
@@ -13,12 +13,12 @@ import { Remediator, RemediationValues } from './Remediator';
|
|
|
13
13
|
import { Authenticator, AuthenticatorValues } from '../../authenticator';
|
|
14
14
|
import { IdxRemediation, IdxContext } from '../../types/idx-js';
|
|
15
15
|
import { NextStep } from '../../types';
|
|
16
|
-
import {
|
|
16
|
+
import { OktaAuthIdxInterface } from '../../../types';
|
|
17
17
|
export declare type VerifyAuthenticatorValues = AuthenticatorValues & RemediationValues;
|
|
18
18
|
export declare class VerifyAuthenticator<T extends VerifyAuthenticatorValues = VerifyAuthenticatorValues> extends Remediator<T> {
|
|
19
19
|
authenticator: Authenticator<VerifyAuthenticatorValues>;
|
|
20
20
|
constructor(remediation: IdxRemediation, values?: T);
|
|
21
|
-
getNextStep(authClient:
|
|
21
|
+
getNextStep(authClient: OktaAuthIdxInterface, context?: IdxContext): NextStep;
|
|
22
22
|
canRemediate(): boolean;
|
|
23
23
|
mapCredentials(): import("../../authenticator").Credentials | undefined;
|
|
24
24
|
getInputCredentials(input: any): any;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import { Remediator, RemediationValues } from './Base/Remediator';
|
|
13
|
-
import { NextStep,
|
|
13
|
+
import { NextStep, OktaAuthIdxInterface } from '../../types';
|
|
14
14
|
import { IdxContext } from '../types/idx-js';
|
|
15
15
|
export interface EnrollPollValues extends RemediationValues {
|
|
16
16
|
startPolling?: boolean;
|
|
@@ -18,6 +18,6 @@ export interface EnrollPollValues extends RemediationValues {
|
|
|
18
18
|
export declare class EnrollPoll extends Remediator<EnrollPollValues> {
|
|
19
19
|
static remediationName: string;
|
|
20
20
|
canRemediate(): boolean;
|
|
21
|
-
getNextStep(authClient:
|
|
21
|
+
getNextStep(authClient: OktaAuthIdxInterface, context?: IdxContext): NextStep;
|
|
22
22
|
getValuesAfterProceed(): EnrollPollValues;
|
|
23
23
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Remediator, RemediationValues } from './Base/Remediator';
|
|
13
13
|
import { IdxContext } from '../types/idx-js';
|
|
14
|
-
import {
|
|
14
|
+
import { OktaAuthIdxInterface } from '../../types';
|
|
15
15
|
export declare type EnrollmentChannelDataValues = RemediationValues & {
|
|
16
16
|
email?: string;
|
|
17
17
|
phoneNumber?: string;
|
|
@@ -31,7 +31,7 @@ export declare class EnrollmentChannelData extends Remediator<EnrollmentChannelD
|
|
|
31
31
|
label: string;
|
|
32
32
|
}[];
|
|
33
33
|
canRemediate(): boolean;
|
|
34
|
-
getNextStep(authClient:
|
|
34
|
+
getNextStep(authClient: OktaAuthIdxInterface, context: IdxContext): {
|
|
35
35
|
authenticator: import("../types/idx-js").IdxAuthenticator;
|
|
36
36
|
name: string;
|
|
37
37
|
canSkip?: boolean | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IdxContext, NextStep, Input } from '../../types';
|
|
2
2
|
import { Remediator } from '../Base/Remediator';
|
|
3
|
-
import {
|
|
3
|
+
import { OktaAuthIdxInterface } from '../../../types';
|
|
4
4
|
export declare class GenericRemediator extends Remediator {
|
|
5
5
|
canRemediate(): boolean;
|
|
6
6
|
getData(): {};
|
|
7
|
-
getNextStep(authClient:
|
|
7
|
+
getNextStep(authClient: OktaAuthIdxInterface, _context?: IdxContext): NextStep;
|
|
8
8
|
getInputs(): Input[];
|
|
9
9
|
}
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Remediator, RemediationValues } from './Base/Remediator';
|
|
13
13
|
import { IdxRemediationValueForm, IdxOption, IdxContext } from '../types/idx-js';
|
|
14
|
-
import {
|
|
14
|
+
import { OktaAuthIdxInterface } from '../../types';
|
|
15
15
|
export declare type SelectEnrollmentChannelValues = RemediationValues & {
|
|
16
16
|
channel?: string;
|
|
17
17
|
};
|
|
18
18
|
export declare class SelectEnrollmentChannel extends Remediator<SelectEnrollmentChannelValues> {
|
|
19
19
|
static remediationName: string;
|
|
20
20
|
canRemediate(): boolean;
|
|
21
|
-
getNextStep(authClient:
|
|
21
|
+
getNextStep(authClient: OktaAuthIdxInterface, context: IdxContext): {
|
|
22
22
|
authenticator: import("../types/idx-js").IdxAuthenticator;
|
|
23
23
|
options?: IdxOption[] | undefined;
|
|
24
24
|
name: string;
|
package/lib/idx/run.d.ts
CHANGED
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
export declare function run(authClient:
|
|
12
|
+
import { OktaAuthIdxInterface, IdxTransaction, RunOptions } from '../types';
|
|
13
|
+
export declare function run(authClient: OktaAuthIdxInterface, options?: RunOptions): Promise<IdxTransaction>;
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
export declare function startTransaction(authClient:
|
|
12
|
+
import { OktaAuthIdxInterface, IdxTransaction, StartOptions } from '../types';
|
|
13
|
+
export declare function startTransaction(authClient: OktaAuthIdxInterface, options?: StartOptions): Promise<IdxTransaction>;
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
export declare function createTransactionMeta(authClient:
|
|
14
|
-
export declare function hasSavedInteractionHandle(authClient:
|
|
15
|
-
export declare function getSavedTransactionMeta(authClient:
|
|
16
|
-
export declare function getTransactionMeta(authClient:
|
|
17
|
-
export declare function saveTransactionMeta(authClient:
|
|
18
|
-
export declare function clearTransactionMeta(authClient:
|
|
12
|
+
import { OktaAuthIdxInterface, IdxTransactionMeta, TransactionMetaOptions } from '../types';
|
|
13
|
+
export declare function createTransactionMeta(authClient: OktaAuthIdxInterface, options?: TransactionMetaOptions): Promise<IdxTransactionMeta>;
|
|
14
|
+
export declare function hasSavedInteractionHandle(authClient: OktaAuthIdxInterface, options?: TransactionMetaOptions): boolean;
|
|
15
|
+
export declare function getSavedTransactionMeta(authClient: OktaAuthIdxInterface, options?: TransactionMetaOptions): IdxTransactionMeta | undefined;
|
|
16
|
+
export declare function getTransactionMeta(authClient: OktaAuthIdxInterface, options?: TransactionMetaOptions): Promise<IdxTransactionMeta>;
|
|
17
|
+
export declare function saveTransactionMeta(authClient: OktaAuthIdxInterface, meta: any): void;
|
|
18
|
+
export declare function clearTransactionMeta(authClient: OktaAuthIdxInterface): void;
|
|
19
19
|
export declare function isTransactionMetaValid(meta: any, options?: TransactionMetaOptions): boolean;
|
|
20
20
|
export declare function isTransactionMetaValidForFlow(meta: any, flow: any): boolean;
|
|
21
21
|
export declare function isTransactionMetaValidForOptions(meta: any, options: any, keys: any): boolean;
|
package/lib/idx/types/api.d.ts
CHANGED
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
export declare function unlockAccount(authClient:
|
|
12
|
+
import { OktaAuthIdxInterface, AccountUnlockOptions, IdxTransaction } from '../types';
|
|
13
|
+
export declare function unlockAccount(authClient: OktaAuthIdxInterface, options?: AccountUnlockOptions): Promise<IdxTransaction>;
|
package/lib/idx/util.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { RemediationValues, Remediator } from './remediators';
|
|
2
|
-
import { IdxFeature, NextStep, RemediateOptions, RemediationResponse } from './types';
|
|
2
|
+
import { IdxFeature, NextStep, RemediateOptions, RemediationResponse, RunOptions } from './types';
|
|
3
3
|
import { IdxMessage, IdxRemediation, IdxRemediationValue, IdxResponse } from './types/idx-js';
|
|
4
|
-
import {
|
|
4
|
+
import { OktaAuthIdxInterface } from '../types';
|
|
5
5
|
export declare function isTerminalResponse(idxResponse: IdxResponse): boolean;
|
|
6
6
|
export declare function canSkipFn(idxResponse: IdxResponse): boolean;
|
|
7
7
|
export declare function canResendFn(idxResponse: IdxResponse): boolean;
|
|
8
8
|
export declare function getMessagesFromIdxRemediationValue(value?: IdxRemediationValue[]): IdxMessage[] | undefined;
|
|
9
|
-
export declare function getMessagesFromResponse(idxResponse: IdxResponse): IdxMessage[];
|
|
9
|
+
export declare function getMessagesFromResponse(idxResponse: IdxResponse, options: RunOptions): IdxMessage[];
|
|
10
10
|
export declare function getEnabledFeatures(idxResponse: IdxResponse): IdxFeature[];
|
|
11
|
-
export declare function getAvailableSteps(authClient:
|
|
11
|
+
export declare function getAvailableSteps(authClient: OktaAuthIdxInterface, idxResponse: IdxResponse, useGenericRemediator?: boolean): NextStep[];
|
|
12
12
|
export declare function filterValuesForRemediation(idxResponse: IdxResponse, remediationName: string, values: RemediationValues): RemediationValues;
|
|
13
13
|
export declare function getRemediator(idxRemediations: IdxRemediation[], values: RemediationValues, options: RemediateOptions): Remediator | undefined;
|
|
14
|
-
export declare function getNextStep(authClient:
|
|
15
|
-
export declare function handleIdxError(authClient:
|
|
14
|
+
export declare function getNextStep(authClient: OktaAuthIdxInterface, remediator: Remediator, idxResponse: IdxResponse): NextStep;
|
|
15
|
+
export declare function handleIdxError(authClient: OktaAuthIdxInterface, e: any, options?: {}): RemediationResponse;
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { CustomUrls, OAuthResponse, RefreshToken, TokenParams } from '../../types';
|
|
12
|
+
import { CustomUrls, OAuthResponse, OktaAuthHttpInterface, RefreshToken, TokenParams } from '../../types';
|
|
13
13
|
export declare function postToTokenEndpoint(sdk: any, options: TokenParams, urls: CustomUrls): Promise<OAuthResponse>;
|
|
14
|
-
export declare function postRefreshToken(sdk:
|
|
14
|
+
export declare function postRefreshToken(sdk: OktaAuthHttpInterface, options: TokenParams, refreshToken: RefreshToken): Promise<OAuthResponse>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function getWellKnown(sdk:
|
|
3
|
-
export declare function getKey(sdk:
|
|
1
|
+
import { OktaAuthOIDCInterface, WellKnownResponse } from '../../types';
|
|
2
|
+
export declare function getWellKnown(sdk: OktaAuthOIDCInterface, issuer?: string): Promise<WellKnownResponse>;
|
|
3
|
+
export declare function getKey(sdk: OktaAuthOIDCInterface, issuer: string, kid: string): Promise<string>;
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
|
-
import { CustomUrls,
|
|
14
|
-
export declare function exchangeCodeForTokens(sdk:
|
|
13
|
+
import { CustomUrls, OktaAuthOIDCInterface, TokenParams, TokenResponse } from '../types';
|
|
14
|
+
export declare function exchangeCodeForTokens(sdk: OktaAuthOIDCInterface, tokenParams: TokenParams, urls?: CustomUrls): Promise<TokenResponse>;
|
package/lib/oidc/getToken.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function getToken(sdk:
|
|
1
|
+
import { OktaAuthOIDCInterface, TokenParams, PopupParams } from '../types';
|
|
2
|
+
export declare function getToken(sdk: OktaAuthOIDCInterface, options: TokenParams & PopupParams): Promise<import("../types").TokenResponse>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AccessToken, IDToken, UserClaims } from '../types';
|
|
2
|
-
export declare function getUserInfo(sdk: any, accessTokenObject: AccessToken, idTokenObject: IDToken): Promise<UserClaims
|
|
1
|
+
import { AccessToken, IDToken, UserClaims, CustomUserClaims } from '../types';
|
|
2
|
+
export declare function getUserInfo<T extends CustomUserClaims = CustomUserClaims>(sdk: any, accessTokenObject: AccessToken, idTokenObject: IDToken): Promise<UserClaims<T>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function getWithPopup(sdk:
|
|
1
|
+
import { OktaAuthOIDCInterface, TokenParams, TokenResponse } from '../types';
|
|
2
|
+
export declare function getWithPopup(sdk: OktaAuthOIDCInterface, options: TokenParams): Promise<TokenResponse>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function getWithRedirect(sdk:
|
|
1
|
+
import { OktaAuthOIDCInterface, TokenParams } from '../types';
|
|
2
|
+
export declare function getWithRedirect(sdk: OktaAuthOIDCInterface, options?: TokenParams): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function getWithoutPrompt(sdk:
|
|
1
|
+
import { OktaAuthOIDCInterface, TokenParams, TokenResponse } from '../types';
|
|
2
|
+
export declare function getWithoutPrompt(sdk: OktaAuthOIDCInterface, options: TokenParams): Promise<TokenResponse>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function handleOAuthResponse(sdk:
|
|
1
|
+
import { OktaAuthOIDCInterface, OAuthResponse, TokenParams, TokenResponse, CustomUrls } from '../types';
|
|
2
|
+
export declare function handleOAuthResponse(sdk: OktaAuthOIDCInterface, tokenParams: TokenParams, res: OAuthResponse, urls?: CustomUrls): Promise<TokenResponse>;
|
package/lib/oidc/renewToken.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function renewToken(sdk:
|
|
1
|
+
import { OktaAuthOIDCInterface, Token } from '../types';
|
|
2
|
+
export declare function renewToken(sdk: OktaAuthOIDCInterface, token: Token): Promise<Token | undefined>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function renewTokensWithRefresh(sdk:
|
|
1
|
+
import { OktaAuthOIDCInterface, TokenParams, RefreshToken, Tokens } from '../types';
|
|
2
|
+
export declare function renewTokensWithRefresh(sdk: OktaAuthOIDCInterface, tokenParams: TokenParams, refreshTokenObject: RefreshToken): Promise<Tokens>;
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
|
-
import {
|
|
14
|
-
export declare function revokeToken(sdk:
|
|
13
|
+
import { OktaAuthOIDCInterface, RevocableToken } from '../types';
|
|
14
|
+
export declare function revokeToken(sdk: OktaAuthOIDCInterface, token: RevocableToken): Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OktaAuthOptionsInterface } from '../../types';
|
|
2
2
|
export declare function addListener(eventTarget: any, name: any, fn: any): void;
|
|
3
3
|
export declare function removeListener(eventTarget: any, name: any, fn: any): void;
|
|
4
4
|
export declare function loadFrame(src: any): HTMLIFrameElement;
|
|
5
5
|
export declare function loadPopup(src: any, options: any): Window | null;
|
|
6
|
-
export declare function addPostMessageListener(sdk:
|
|
6
|
+
export declare function addPostMessageListener(sdk: OktaAuthOptionsInterface, timeout: any, state: any): Promise<unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function getDefaultTokenParams(sdk:
|
|
1
|
+
import { OktaAuthOptionsInterface, TokenParams } from '../../types';
|
|
2
|
+
export declare function getDefaultTokenParams(sdk: OktaAuthOptionsInterface): TokenParams;
|