Skip to content

Commit c0dda2c

Browse files
committed
fix: add OAuth2Adapter interface for authentication
1 parent 597d7ce commit c0dda2c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

adminforth/types/Adapters.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ export interface CompletionAdapter {
2424
error?: string;
2525
}>;
2626
}
27+
28+
export interface OAuth2Adapter {
29+
getAuthUrl(): string;
30+
getTokenFromCode(code: string, redirect_uri: string): Promise<{ email: string }>;
31+
getIcon(): string;
32+
}

0 commit comments

Comments
 (0)