Package version:

Function deserializeAuthenticationRecord

  • Deserializes a previously serialized authentication record from a string into an object.

    The input string must contain the following properties:

    • "authority"
    • "homeAccountId"
    • "clientId"
    • "tenantId"
    • "username"
    • "version"

    If the version we receive is unsupported, an error will be thrown.

    At the moment, the only available version is: "1.0", which is always set when the authentication record is serialized.

    Parameters

    • serializedRecord: string

      Authentication record previously serialized into string.

    Returns AuthenticationRecord

    AuthenticationRecord.