Skip to content

otplib API Documentation / @otplib/core / requireLabel

Function: requireLabel()

requireLabel(label): asserts label is string

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

Require label to be configured (for URI generation)

Parameters

label

The label value

string | undefined

Returns

asserts label is string

Throws

If label is not set

Released under the MIT License.