Skip to content

UserAppMetadata is not fully typed #1695

@softmarshmallow

Description

@softmarshmallow

Current typing

export interface UserAppMetadata {
  provider?: string
  [key: string]: any
}

Should be (could be)

type AuthProvider = Provider & ("email" | (string & {})); // needs more work here
export interface UserAppMetadata {
  provider?: AuthProvider // assign a type
  providers?: AuthProvider[] // define a field
  [key: string]: any
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    auth-jsRelated to the auth-js library.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions