feat: support gravatar profile pictures for oidc

This commit is contained in:
Aarnav Tale
2025-08-21 12:16:11 -04:00
parent 9183f805a6
commit 4351e1fcb3
5 changed files with 51 additions and 3 deletions
+9 -1
View File
@@ -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),