@microsoft/useragent-sdk
Version:
SDK for building decentralized identity wallets and enterprise agents.
49 lines (47 loc) • 1.2 kB
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/**
* OpenID Connect Self-Issued ID Token Response.
*/
export default interface AuthenticationResponse {
/**
* MUST be set to 'https://self-issued.me'.
*/
iss: 'https://self-issued.me';
/**
* thumbprint of the key used to sign response
*/
sub: string;
/**
* The redirect url as specified in the OIDC self-issued protocol
*/
aud: string;
/**
* Nonce of the challenge
*/
nonce: string;
/**
* Expiration as a UTC datetime
*/
exp: number;
/**
* Issued at as a UTC datetime
*/
iat: number;
/**
* the public key used to check the signature of the ID Token
*/
sub_jwk: object;
/**
* DID used to sign the response
*/
did_comm: {
did: string;
}
/**
* Additional claims requested
*/
claims?: any;
}