@fluidframework/azure-service-utils Package

Packages > @fluidframework/azure-service-utils

A set of helper utilities for building backend APIs for use with Azure Fluid Relay.

Functions

List of functions contained in this package or namespace
Function Description
generateToken(tenantId, key, scopes, documentId, user, lifetime, ver) Generates a JWT token to authorize routerlicious. This function uses a browser friendly auth library (jsrsasign) and should only be used in client context. If a token ever needs to be generated on the client side, it should re-use this function. If it needs to be used on the service side, please use the copy available in the server-services-client package in order to avoid interdependencies between service and client packages

Functions

generateToken

Generates a JWT token to authorize routerlicious. This function uses a browser friendly auth library (jsrsasign) and should only be used in client context. If a token ever needs to be generated on the client side, it should re-use this function. If it needs to be used on the service side, please use the copy available in the server-services-client package in order to avoid interdependencies between service and client packages

Signature:

export declare function generateToken(tenantId: string, key: string, scopes: ScopeType[], documentId?: string, user?: IUser, lifetime?: number, ver?: string): string;

Parameters

List of parameters
Parameter Type Description
tenantId
key
scopes ScopeType
documentId
user IUser
lifetime
ver

Returns: