Skip to content

Commit

Permalink
The authenticate method returns a Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyfel committed Jan 20, 2025
1 parent dc26c65 commit df0ad4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ember-simple-auth/src/services/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type InternalSessionMock<Data> = {
store: unknown;
attemptedTransition: null;
on: (event: 'authenticationSucceeded' | 'invalidationSucceeded', cb: () => void) => void;
authenticate: (authenticator: string, ...args: any[]) => void;
authenticate: (authenticator: string, ...args: any[]) => Promise<void>;
invalidate: (...args: any[]) => void;
requireAuthentication: (transition: Transition, routeOrCallback: RouteOrCallback) => boolean;
prohibitAuthentication: (routeOrCallback: RouteOrCallback) => boolean;
Expand Down

0 comments on commit df0ad4a

Please sign in to comment.