Options
All
  • Public
  • Public/Protected
  • All
Menu

External module scripts/bg/user

Manage the current user

Index

Events

onChromeMessage

  • onChromeMessage(request: IMsgType, sender: MessageSender, response: ChromeMsg.ResponseCB): boolean

onSignInChanged

  • onSignInChanged(account: AccountInfo, signedIn: boolean): void

Variables

Const chromep

chromep: ChromePromise = new ChromePromise()

Functions

forceSignOut

  • forceSignOut(notify?: boolean, reason?: string): Promise<void>
  • Force signOut without unregistering from App Engine and without needing OAuth

    Parameters

    • Default value notify: boolean = false

      if true, post error notification

    • Default value reason: string = "Unknown Error"

      reason for call

    Returns Promise<void>

needsCleanup

  • needsCleanup(): Promise<void>

removeAuthToken

  • removeAuthToken(scopes?: string[]): Promise<void>
  • Remove the cached auth token

    Parameters

    • Optional scopes: string[]

      optional scopes to use, overrides those in the manifest

    Returns Promise<void>

setInfo

  • setInfo(): Promise<void>

setSignIn

  • setSignIn(val: boolean): void

signIn

  • signIn(): Promise<void>

signOut

  • signOut(): Promise<void>

Generated using TypeDoc