Skip to content

Email resend failed assertion '[OtpType.signup, OtpType.emailChange].contains(type)': email must be provided for type email #1008

@feiwhang

Description

@feiwhang

https://supabase.com/docs/reference/dart/auth-setsession

Following the docs, I found an assertion failed
flutter: 'package:gotrue/src/gotrue_client.dart': Failed assertion: line 657 pos 14: '[OtpType.signup, OtpType.emailChange].contains(type)': email must be provided for type email

Steps to reproduce the behavior:

  1. call resend with provided email and OtpType.email

Should be able to resend confirmation email like docs suggest with out assertion failed.

└── supabase_flutter 2.6.0
├── supabase 2.3.0
│ ├── functions_client 2.3.2
│ ├── gotrue 2.8.4
│ ├── postgrest 2.1.4
│ ├── realtime_client 2.2.1
│ ├── storage_client 2.0.3

image image image

Metadata

Metadata

Assignees

No one assigned

    Labels

    authThis issue or pull request is related to authenticationdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions