matrix-js-sdk
    Preparing search index...

    Function startDeviceAuthorization

    • Begin OIDC device authorization flow.

      Parameters

      • options: { clientId: string; metadata: ValidatedAuthMetadata; scope: string }

        The device authorization parameters.

        • clientId: string

          the client ID returned from client registration.

        • metadata: ValidatedAuthMetadata

          the validated OIDC metadata for the Identity Provider.

        • scope: string

          the scope to request for authorization.

      Returns Promise<DeviceAuthorizationResponse>

      a promise that resolves to a device access token response, or an error response if the user denies authorization or the device code expires.