add: developer panel
This commit is contained in:
parent
ebded00fd3
commit
39574df691
44 changed files with 982 additions and 84 deletions
|
@ -5,7 +5,6 @@ use super::{Result, Error};
|
|||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct AuthGrant {
|
||||
pub id: usize,
|
||||
/// The ID of the application associated with this grant.
|
||||
pub app: usize,
|
||||
/// The code challenge for PKCE verifiers associated with this grant.
|
||||
|
@ -22,6 +21,9 @@ pub struct AuthGrant {
|
|||
/// The access token associated with the account. This is **not** the same as
|
||||
/// regular account access tokens, as the token can only be used with the requested `scopes`.
|
||||
pub token: String,
|
||||
/// The time in which the token was last refreshed. Tokens should stop being
|
||||
/// accepted after a week has passed since this time.
|
||||
pub last_updated: usize,
|
||||
/// Scopes define what the grant's token is actually allowed to do.
|
||||
///
|
||||
/// No scope shall ever be allowed to change scopes or manage grants on behalf of the user.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue