Memco

Interface ExternalUserKey

An external user's API key, described without its value.

interface ExternalUserKey {
    id: string;
    name: string;
    valuePrefix: string;
    roles: readonly string[];
    scopes: readonly string[];
    validUntil: Date | null;
}
Index
id: string

The handle addressing the key, for deleting it.

name: string

The key's name. Empty when none was given.

valuePrefix: string

The first characters of the key's value, to recognise it by.

roles: readonly string[]

The content roles the key carries.

scopes: readonly string[]

The scopes the key grants.

validUntil: Date | null

When the key expires, or null when the service reported no expiry.

On this page