models/oauth_db.py¶
models.oauth_db ¶
oauth database
OAuthDB ¶
Bases: DBBase
OAuthDB Collection
Source code in models/oauth_db.py
add_data ¶
Add user data
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mail |
str
|
Email address as unique key to save. |
required |
data |
dict
|
The data from Google OAuth return. |
required |
Returns:
Type | Description |
---|---|
dict[str, Any]
|
Return the inserted / updated data. |
Source code in models/oauth_db.py
add_token ¶
Add user oauth token
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mail |
str
|
Email address. |
required |
credentials |
Credentials
|
required |