mirror of
https://github.com/Sevichecc/m-oauth.git
synced 2025-04-30 06:59:29 +08:00
31 lines
493 B
TypeScript
31 lines
493 B
TypeScript
export type MethodType =
|
|
| "read"
|
|
| "write"
|
|
| "follow"
|
|
| "crypto"
|
|
| "follow"
|
|
| "admin"
|
|
| "push";
|
|
|
|
export interface ScopeInfo {
|
|
method: MethodType;
|
|
label: string;
|
|
scopes?: string[] | string[][];
|
|
description: string;
|
|
}
|
|
|
|
export interface Credentials {
|
|
id: string;
|
|
name: string;
|
|
website: string | null;
|
|
redirect_uri: string;
|
|
client_id: string;
|
|
client_secret: string;
|
|
vapid_key: string;
|
|
}
|
|
|
|
export type MError = {
|
|
error: string;
|
|
error_description: string
|
|
};
|
|
|