Skip to content

@gala-chain/chaincodeAPI


API > authorize

Function: authorize()

authorize(ctx, dto, legacyCAUser): Promise\<object>

Parameters

ctx: GalaChainContext

dto: undefined | ChainCallDTO

legacyCAUser: string

fallback user alias to use then the new flow is not applicable

Returns

User alias of the calling user.

Source

chaincode/src/contracts/authorize.ts:71