Nyora (JavaScript) - v2.0.3
    Preparing search index...

    Class NyoraSync

    Account and library sync against the Nyora sync server.

    Index

    Constructors

    Properties

    baseUrl: string
    email: string | null = null

    Accessors

    • get isSignedIn(): boolean

      Whether an access token is currently held.

      Returns boolean

    Methods

    • Register a new account (server may have registration disabled).

      Parameters

      • email: string
      • password: string

      Returns Promise<void>

    • Sign in with the OAuth2 password grant and store the tokens.

      Parameters

      • email: string
      • password: string

      Returns Promise<void>

    • Forget the stored tokens.

      Returns void

    • Last-write-wins upsert of rows into table. Returns rows written.

      Parameters

      • table: string
      • rows: Record<string, unknown>[]

      Returns Promise<number>

    • Fetch rows from table, optionally only those changed after since.

      Parameters

      • table: string
      • Optionalsince: string

      Returns Promise<Record<string, unknown>[]>

    • Hard-delete one extension-repo row for the signed-in user.

      Parameters

      • type: string
      • baseUrl: string

      Returns Promise<void>