API Reference > imodeljs-frontend > Utils > AuthorizedFrontendRequestContext > constructor constructor Method Create a new context for agent applications or long running frontend operations to pass to various services AuthorizedFrontendRequestContext(accessToken: AccessToken, activityId: string = Guid.createValue()): AuthorizedFrontendRequestContext see AuthorizedFrontendRequestContext.create to create the request based on the authorization information supplied to IModelHost. Parameter Type Description accessToken AccessToken activityId string Returns - AuthorizedFrontendRequestContext Defined in core/frontend/src/FrontendRequestContext.ts Line 22 Last Updated: 13 June, 2024