mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
chore: improve oidc provider support
Adds fields to the Account model to support various pieces of data returned by OIDC providers such as AzureAD and GitLab. Additionally passes through the email verification status and handles retrieving the email for providers such as AzureAD who use a different claim instead.
This commit is contained in:
@ -233,6 +233,10 @@ model Account {
|
||||
refresh_token String? @db.Text
|
||||
access_token String? @db.Text
|
||||
expires_at Int?
|
||||
// Some providers return created_at so we need to make it optional
|
||||
created_at Int?
|
||||
// Stops next-auth from crashing when dealing with AzureAD
|
||||
ext_expires_in Int?
|
||||
token_type String?
|
||||
scope String?
|
||||
id_token String? @db.Text
|
||||
|
||||
Reference in New Issue
Block a user