import { executeBackendCallback } from "@itwin/certa/lib/utils/CallbackUtils" ; import { TestUserCredentials } from "@itwin/oidc-signin-tool/lib/cjs/frontend" ; import { AccessToken } from "@itwin/core-bentley" ; export const getTokenCallbackName = "setBackendAccessToken" ; export type SerializedAccessToken = [ string , any ] ; export async function setBackendAccessToken ( user ) { const accessToken = await executeBackendCallback ( getTokenCallbackName , user ) ; return accessToken ; }