Skip to content

Commit

Permalink
Fix "hard" type of promise #54
Browse files Browse the repository at this point in the history
OKTA-350123
<<<Jenkins Check-In of Tested SHA: bf28596 for [email protected]>>>
Artifact: okta-react
  • Loading branch information
amcdnl authored and eng-prod-CI-bot-okta committed Dec 2, 2020
1 parent 3a7c298 commit 1e9ae3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OktaContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import * as React from 'react';
import { AuthState, OktaAuth } from '@okta/okta-auth-js';

export type OnAuthRequiredFunction = (oktaAuth: OktaAuth) => Promise<void>;
export type OnAuthRequiredFunction = (oktaAuth: OktaAuth) => Promise<void> | void;

export interface IOktaContext {
oktaAuth: OktaAuth;
Expand Down

0 comments on commit 1e9ae3b

Please sign in to comment.