mirror of
https://github.com/supabase/supabase.git
synced 2026-06-20 23:06:06 +08:00
The old JWT generator code provided the anon and authenticated claims as strings. The format of this string is different from the format determined by KJUR if an object is provided (I'm guessing probably a whitespace or quote character thing, but I didn't dive down this rabbit hole.) This leads to incompatibilities when the token is used. To prevent this, the tokens are now defined as objects and KJUR's own serialization is used.