Skip to content

Wrong signature - only in codesandbox with v0.33 #230

@joepio

Description

@joepio

In this codesandbox env I'm getting a wrong signature error when authentication happens. Diving a bit deeper makes it clear that the signToBase64 returns the wrong thing, only in codesandbox with v0.33:

const test = signToBase64(
  'test',
  'A/HPrEDqn+1KLZiOLwFOzknX3DAX8bbOmVt/+WCkrzM=',
);
test.then(console.log);

Locally: mWh7xwoBFAdj2vKdG4ACq0jGvxUtF8APjWEgHCEDXR1aCc2NBVLEgd9NR2N5hXqdDRZuYrwFKoFE4ZVZT5KJBQ==
Codesandbox (v0.32.2): mWh7xwoBFAdj2vKdG4ACq0jGvxUtF8APjWEgHCEDXR1aCc2NBVLEgd9NR2N5hXqdDRZuYrwFKoFE4ZVZT5KJBQ==
Codesandbox (v0.33.0): CKNpTllw1LZ33Fwm/Dkbx6lpvuQ+8hk3DrtA0BxntHV0AjNdkZvXdxCfhlAsiZ24Ofudcxx4bRylB+sHv3cQDA==

What's going on here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions