Skip to content

Update the declaration types #11

Closed
@stuft2

Description

@stuft2

The token() function returns the token object not a string:

export interface TokenClient {
    id: string
    byuId: string
    appName: string
}

export interface Token {
    bearer: string
    authorizationHeader: string
    expiresAt: Date
    client: TokenClient
    rawUserInfo: Record<string, unknown>
}

The user() function returns the user object which is safer than using any:

export interface UserNameObject {
    displayName: string
    familyName?: string
    displayNamePosition?: string
    givenName?: string
    sortName?: string
}

export interface User {
    email: string
    byuId: string
    netId: string
    personId: string
    name: UserNameObject
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions