Skip to content

Error when refreshing token in local dev. env.: missing destination name refresh_token_hmac_key in *models.Session #1268

@stefanorumi7

Description

@stefanorumi7

Describe the bug
When refreshing the token through GoTrueClient._refreshAccessToken I get the error AuthRetryableFetchException (AuthRetryableFetchException(message: {"code":"unexpected_failure","message":"missing destination name refresh_token_hmac_key in *models.Session"}, statusCode: 500))

To Reproduce
Steps to reproduce the behavior:

  1. Get a token
  2. Refresh it

Expected behavior
The token should refresh successfully and no error thrown.

Screenshots
Image

Version (please complete the following information):
On macOS

├── brick_offline_first_with_supabase 2.1.0
│   ├── brick_supabase...
│   └── supabase 2.10.0
│       ├── functions_client 2.5.0
│       ├── gotrue 2.16.0
│       ├── postgrest 2.5.0
│       ├── realtime_client 2.6.0
│       ├── storage_client 2.4.1
├── brick_offline_first_with_supabase_build 2.0.0
│   ├── brick_offline_first_with_supabase...
│   ├── brick_supabase...
│   ├── brick_supabase_generators 2.0.0
│   │   ├── brick_supabase...
├── brick_supabase 2.1.1
│   └── supabase...
├── supabase_flutter 2.10.3
│   ├── supabase...

Additional context
This is happening in local development with supabase version 2.58.5.

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