How to use the base-64.default.encode function in base-64

To help you get started, we’ve selected a few base-64 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mrellipse / toucan / src / ui / app / common / token-helper.ts View on Github external
public static setProvider(provider: ILoginProvider): void {

        localStorage.setItem(GlobalConfig.auth.externalProviderKey, base64.encode(JSON.stringify(provider)));
    }

base-64

A robust base64 encoder/decoder that is fully compatible with `atob()` and `btoa()`, written in JavaScript.

MIT
Latest version published 4 years ago

Package Health Score

67 / 100
Full package analysis