iya-sts
    Preparing search index...
    create: (
        clientId: string,
        clientName: string,
        scope: string,
        dpopJkt: string,
        resources?: string[],
    ) => any = ...

    Type Declaration

      • (
            clientId: string,
            clientName: string,
            scope: string,
            dpopJkt: string,
            resources?: string[],
        ): any
      • Creates a device authorization for a client: a 256-bit device code and an eight-character user code (sections 3.1 and 3.2).

        Parameters

        • clientId: string

          the client asking

        • clientName: string

          its name, shown on the approval page

        • scope: string

          the scope requested

        • dpopJkt: string

          the DPoP key thumbprint the request was bound to, or ''

        • Optionalresources: string[]

          the authorized RFC 8707 resource indicators

        Returns any

        the new record, with deviceCode and userCode beside it for the response — the stored record holds only their digests (#614)