@cutls/megalodon
Version:
Mastodon, Pleroma, Misskey API client for node.js and browser
19 lines (18 loc) • 486 B
TypeScript
import OAuth from '@/oauth.js'
export type AppDataFromServer = {
id: string
name: string
website: string | null
redirect_uri: string
client_id: string
client_secret: string
}
export type TokenDataFromServer = {
access_token: string
refresh_token: string
token_type: string
expires_in: number
created_at: number
}
export declare function toAppData(appData: AppDataFromServer): OAuth.AppData
export declare function toTokenData(tokenData: TokenDataFromServer): OAuth.TokenData