/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: dd653d48dc6a */ import { clientAuthenticationCreateToken } from "../funcs/clientAuthenticationCreateToken.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { unwrapAsync } from "../types/fp.js"; export class ClientAuthentication extends ClientSDK { /** * Create authentication token * * @remarks * Creates an authentication token for the authenticated user. These are * specifically intended to be used with the [Web SDK](https://developers.glean.com/web). * * Note: The tokens generated from this endpoint are **not** valid tokens * for use with the Client API (e.g. `/rest/api/v1/*`). */ async createToken( options?: RequestOptions, ): Promise { return unwrapAsync(clientAuthenticationCreateToken( this, options, )); } }