ping-identity
    Preparing search index...

    Type Alias OathCredential

    A registered OATH credential stored in the native OATH store.

    The type field is always uppercase on both iOS and Android ('TOTP' or 'HOTP'). The secret field is never exposed over the bridge.

    const credential = await client.getCredential('my-credential-id');
    if (credential?.type === 'TOTP') {
    console.log('TOTP period:', credential.period);
    }
    type OathCredential = {
        accountName: string;
        algorithm: "SHA1" | "SHA256" | "SHA512";
        backgroundColor: string | null;
        counter: number;
        createdAt: number;
        digits: number;
        displayAccountName: string;
        displayIssuer: string;
        id: string;
        imageURL: string | null;
        isLocked: boolean;
        issuer: string;
        lockingPolicy: string | null;
        period: number;
        policies: string | null;
        resourceId: string | null;
        type: "TOTP" | "HOTP";
        userId: string | null;
    }
    Index

    Properties

    accountName: string

    Account name (username / e-mail) as encoded in the credential URI.

    algorithm: "SHA1" | "SHA256" | "SHA512"

    HMAC algorithm used to generate OTP codes.

    Always uppercase on both platforms. Maps to the native OathAlgorithm enum on Android and OathAlgorithmType on iOS.

    backgroundColor: string | null

    Optional background colour associated with the credential, as a hex string.

    counter: number

    HOTP counter value. Unused for TOTP credentials.

    createdAt: number

    Timestamp (milliseconds since Unix epoch) at which the credential was created.

    Derived from Date.time.toDouble() on Android and timeIntervalSince1970 * 1000 on iOS.

    digits: number

    Number of OTP digits (typically 6 or 8).

    displayAccountName: string

    Human-readable account name used for display purposes.

    displayIssuer: string

    Human-readable issuer name used for display purposes.

    id: string

    Unique identifier for the credential.

    imageURL: string | null

    Optional URL for the credential issuer logo image.

    isLocked: boolean

    Whether this credential is currently locked by a device policy.

    issuer: string

    Issuer name as encoded in the credential URI.

    lockingPolicy: string | null

    Name of the policy currently locking the credential, or null if not locked by a policy.

    period: number

    TOTP period in seconds. Unused for HOTP credentials.

    policies: string | null

    JSON-encoded policy configuration string, or null if no policies are attached.

    resourceId: string | null

    Resource identifier associated with the credential, or null if not set.

    type: "TOTP" | "HOTP"

    OATH algorithm type.

    Always uppercase on both platforms: 'TOTP' or 'HOTP'.

    userId: string | null

    User identifier associated with the credential, or null if not set.