(hubRootUrl: string, network: string, mnemonic?: string)
| 2 | import { getSDK } from '@cardstack/cardpay-sdk'; |
| 3 | |
| 4 | export const hubAuth = async (hubRootUrl: string, network: string, mnemonic?: string): Promise<void> => { |
| 5 | let web3 = await getWeb3(network, mnemonic); |
| 6 | let authToken = await (await getSDK('HubAuth', web3, hubRootUrl)).authenticate(); |
| 7 | console.log(`Authentication token: ${authToken}`); |
| 8 | }; |
no test coverage detected