Skip to content

Commit 8ae3214

Browse files
Merge pull request #2928 from andreyfel/fix-authenticate-return-type
The authenticate method returns a Promise
2 parents dc26c65 + df0ad4a commit 8ae3214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ember-simple-auth/src/services/session.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type InternalSessionMock<Data> = {
3232
store: unknown;
3333
attemptedTransition: null;
3434
on: (event: 'authenticationSucceeded' | 'invalidationSucceeded', cb: () => void) => void;
35-
authenticate: (authenticator: string, ...args: any[]) => void;
35+
authenticate: (authenticator: string, ...args: any[]) => Promise<void>;
3636
invalidate: (...args: any[]) => void;
3737
requireAuthentication: (transition: Transition, routeOrCallback: RouteOrCallback) => boolean;
3838
prohibitAuthentication: (routeOrCallback: RouteOrCallback) => boolean;

0 commit comments

Comments
 (0)