Skip to content

Encoding js doesn't always work #2

Closed
@moonsift

Description

@moonsift

I believe that this applies for any js script that encodes to base64 with more than one + or /

A decision needs to be made on how to update this file:
src/utils.ts

Either it could encode to 'base64url' as is possible since node14
Or it should use 'replaceAll' instead of just 'replace' (since node15)
Or write a replace as a regex with global g suffix (see https://futurestud.io/tutorials/node-js-string-replace-all-appearances)

More info on base64 chars: https://stackoverflow.com/questions/55389211/string-based-data-encoding-base64-vs-base64url

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