Skip to content

Channels close if the jtw iat/exp contains decimals #1315

@markledwich2

Description

@markledwich2

I am self hosting and realtime closed channels immediately. The corresponding log on the realtime server was:

2025-02-27 14:48:02 04:48:02.821 project=realtime-dev external_id=realtime-dev error_code=UnknownErrorOnChannel [error] UnknownErrorOnChannel: {:ok,
2025-02-27 14:48:02  %{
2025-02-27 14:48:02    "exp" => 2055908568.285,
2025-02-27 14:48:02    "iat" => 1740375768.278,
2025-02-27 14:48:02    "iss" => "supabase",
2025-02-27 14:48:02    "role" => "anon"
2025-02-27 14:48:02  }}

When i changed by exp and iat to not include decimal place it works.

Expected: it should work, or have a more informative error.

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