UNPKG

@dynamic-labs/sdk-react-core

Version:

A React SDK for implementing wallet web3 authentication and authorization to your website.

16 lines (12 loc) 417 B
'use client' 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const encodeBase64URL = (str) => { const numberArray = []; new Uint8Array(str).forEach((item) => numberArray.push(item)); return btoa(String.fromCharCode.apply(null, numberArray)) .replace(/=/g, '') .replace(/\+/g, '-') .replace(/\//g, '_'); }; exports.encodeBase64URL = encodeBase64URL;