/** * Set the Forms Key token being used to make requests to the OneBlink API on * behalf of the user. * * #### Example * * ```js * authService.setFormsKeyToken('a valid json web token') * ``` * * @param jwtToken */ export declare function setFormsKeyToken(jwtToken: string | undefined | null): void; /** * Can be used to extract the `keyId` from the Forms Key token passed to * `setFormsKeyToken()`. Will be `undefined` if the token has not been set yet. * * #### Example * * ```js * const keyId = authService.getFormsKeyId() * if (keyId) { * // Use keyId here... * } * ``` * * @returns */ export declare function getFormsKeyId(): string | void; /** * Get the Id Token used to make requests to the OneBlink API. This will return * `undefined` if the current user is not logged in. * * #### Example * * ```js * const idToken = await authService.getIdToken() * if (idToken) { * await fetch(url, { * headers: { * Authorization: `Bearer ${idToken}`, * }, * }) * } else { * // Handle user not being logged in * } * ``` * * @returns */ export declare function getIdToken(): Promise;