getAuthToken
Returns authToken received from Bcode API to authenticate call, it depends on API Key used.
Usage
import { BcodeSDK } from "@bcode-tech/bcode-sdk";
const fun = () => {
const sdk = new BcodeSDK({
apiKey: "your-api-key",
config: { env: "MUMBAI" },
});
await sdk.getAuthToken();
};
Returns
JWT token string.