How to use the base-64.default.decode 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 getProvider(): ILoginProvider {

        let value = localStorage.getItem(GlobalConfig.auth.externalProviderKey);
        return value ? JSON.parse(base64.decode(value)) : null;
    }

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