@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
23 lines • 892 B
TypeScript
import { API_REGIONS } from '~/client/utils/endpoints';
/**
* Retrieves accessToken info to use in Beta services
*
* @param apiKey for the Http Client instance
* @param apiRegion endpoint to connect to
* @param params The token parameters
* @param params.userId The userId to use to issue a token
* @param params.displayName The user's displayName
* @param params.authToken The authentication token - necessary when network option is set to secure
* @return An accessToken info object for the given userId
*
* @category External API
* @hidden
*/
export declare const createUserToken: (apiKey: string, apiRegion: (typeof API_REGIONS)[keyof typeof API_REGIONS], params: {
userId: Amity.InternalUser['userId'];
displayName?: Amity.InternalUser['displayName'];
authToken?: string;
}) => Promise<{
accessToken: string;
}>;
//# sourceMappingURL=createUserToken.d.ts.map