Skip to content

Missing attribute on type Factor #1055

@Dramelac

Description

@Dramelac

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

When calling function supabase.auth.mfa.listFactors(), the retrieved data returns Factor[]. These factors have a last_challenged_at attribute. I can see the attribute in console but the Factor type interface does not include it.
Is it intended ?

Image

Factor type here hava every attribut except last_challenged_at:

auth-js/src/lib/types.ts

Lines 298 to 315 in cff5bcb

export interface Factor {
/** ID of the factor. */
id: string
/** Friendly name of the factor, useful to disambiguate between multiple factors. */
friendly_name?: string
/**
* Type of factor. `totp` and `phone` supported with this version
*/
factor_type: 'totp' | 'phone' | (string & {})
/** Factor's status. */
status: 'verified' | 'unverified'
created_at: string
updated_at: string
}

To Reproduce

Just run await supabase.auth.mfa.listFactors(); on any session with TOTP configured devices.

System information

  • Version of supabase-js: 2.69.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions