neet/masto.js

View on GitHub
src/mastodon/entities/v1/token.ts

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Represents an OAuth token used for authenticating with the API and performing actions.
 * @see https://docs.joinmastodon.org/entities/token/
 */
export interface Token {
  /** An OAuth token to be used for authorization. */
  accessToken: string;
  /** The OAuth token type. Mastodon uses Bearer tokens. */
  tokenType: string;
  /** The OAuth scopes granted by this token, space-separated. */
  scope: string;
  /** When the token was generated. */
  createdAt: number;
}