feat: support gravatar profile pictures for oidc
This commit is contained in:
parent
9183f805a6
commit
4351e1fcb3
5 changed files with 51 additions and 3 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue