ExternalAccount object is a model around an identification obtained by an external provider (e.g. an OAuth provider such as Google).
External account must be verified, so that you can make sure they can be assigned to their rightful owners. The
ExternalAccount object holds all necessary state around the verification process.
|A unique identifier for this external account.|
|The identification with which this external account is associated.|
|The provider name e.g. |
|Metadata provided about the user from the provider.|
|The unique ID of the user in the provider.|
|The provided email address of the user.|
|The scopes that the user has granted access to.|
|The provided first name of the user.|
|The provided last name of the user.|
|The provided avatar URL of the user.|
|The provided username of the user.|
|A descriptive label to differentiate multiple external accounts of the same user for the same provider.|
|An object holding information on the verification of this external account.|
function reauthorize(params: ReauthorizeExternalAccountParams): Promise<ExternalAccount>;
Invokes a re-authorization flow for an existing external account.
|Any additional scopes you would like your user to be prompted to approve.|
|The URL to redirect back to one the OAuth flow has completed successfully or unsuccessfully.|
function destroy(): Promise<void>;
Deletes this external account.
function providerSlug(): string;
A getter method for the
function providerTitle(): string;
Returns the title of the provider with the word "Account" appended.
Google Account will be returned.
function accountIdentifier(): string;
Returns the identifier of the account, which can be one of the following:
Last updated on October 5, 2023