Skip to content

Commit

Permalink
fix(typings): additional updates from @types/nuxtjs__auth
Browse files Browse the repository at this point in the history
  • Loading branch information
NickBolles committed Mar 25, 2020
1 parent 235766f commit 4614e4b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,15 @@ export interface Auth<T = any> {
onError(handler: (error: Error, name: string, endpoint: any) => void): any;
setUser(user?: Partial<T>): any;
reset(): Promise<never>;
onRedirect(listener: () => void): void;
redirect(name: string): any;
onRedirect(listener: () => void): void;
strategy(): string;
registerStrategy(strategyName: string, strategy: object): void;
setStrategy(strategyName: string): void;
setUserToken(token: string): Promise<void>;
getRefreshToken(strategyName: string): string;
setRefreshToken(strategyName: string, token?: string): string;
syncRefreshToken(strategyName: string): string;
}

declare module '@nuxt/types' {
Expand Down

0 comments on commit 4614e4b

Please sign in to comment.