mirror of
https://github.com/tale/headplane.git
synced 2026-08-12 06:46:51 +00:00
feat: support gravatar profile pictures for oidc
This commit is contained in:
+9
-1
@@ -69,10 +69,18 @@ interface FlowOptions {
|
||||
nonce?: string;
|
||||
}
|
||||
|
||||
export interface FlowUser {
|
||||
subject: string;
|
||||
name: string;
|
||||
email: string | undefined;
|
||||
username: string | undefined;
|
||||
picture: string | undefined;
|
||||
}
|
||||
|
||||
export async function finishAuthFlow(
|
||||
config: Configuration,
|
||||
options: FlowOptions,
|
||||
) {
|
||||
): Promise<FlowUser> {
|
||||
const tokens = await client.authorizationCodeGrant(
|
||||
config,
|
||||
new URL(options.redirect_uri),
|
||||
|
||||
Reference in New Issue
Block a user