Skip to content

otplib API Documentation / @otplib/core / utils / requireLabel

Function: requireLabel() ​

requireLabel(label): asserts label is string

Defined in: packages/core/src/utils.ts:1002

Require label to be configured (for URI generation)

Parameters ​

label ​

string | undefined

The label value

Returns ​

asserts label is string

Throws ​

If label is not set

Released under the MIT License.