Skip to content

Missing attribute on type Factor #1678

@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:
https://github.com/supabase/auth-js/blob/cff5bcb8399a46b293cfa8688d89882924e7edab/src/lib/types.ts#L298-L315

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

    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