Type alias AuthTokenV3

AuthTokenV3: {
    exp: number;
    iat: number;
    jti: string;
} & {
    scope: {
        analytics?: {
            enabled?: boolean;
        };
        appId: string;
        rooms: ({
            id?: string;
            name?: string;
        } & {
            member?: {
                id?: (...) | (...);
                name?: (...) | (...);
            } & {
                methods: (...)[];
            } & {
                [k: string]: unknown;
            };
            methods: ("create" | "updateMetadata" | "close")[];
            sfu?: {
                enabled?: boolean;
                maxSubscribersLimit?: number;
            };
        } & {
            [k: string]: unknown;
        })[];
        turn?: {
            enabled?: boolean;
        };
    } & {
        [k: string]: unknown;
    };
    version: 3;
}

Type declaration

  • exp: number

    このトークンが無効になる時間を表すタイムスタンプ(UNIX timestamp)

  • iat: number

    トークンが発行された日時(UNIX timestamp)

  • jti: string

    トークンのユニークなid(uuid)

Type declaration

  • scope: {
        analytics?: {
            enabled?: boolean;
        };
        appId: string;
        rooms: ({
            id?: string;
            name?: string;
        } & {
            member?: {
                id?: (...) | (...);
                name?: (...) | (...);
            } & {
                methods: (...)[];
            } & {
                [k: string]: unknown;
            };
            methods: ("create" | "updateMetadata" | "close")[];
            sfu?: {
                enabled?: boolean;
                maxSubscribersLimit?: number;
            };
        } & {
            [k: string]: unknown;
        })[];
        turn?: {
            enabled?: boolean;
        };
    } & {
        [k: string]: unknown;
    }

    tokenの権限を表すクレーム[version:3]

  • version: 3

    tokenのバージョン[version:3]

    • 2以下の場合とでscopeの構造に違いがあります。