Skip to content

otplib API Documentation / @otplib/core / requireBase32Plugin

Function: requireBase32Plugin()

requireBase32Plugin<T>(base32): asserts base32 is T

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

Require Base32 plugin to be configured

Type Parameters

T

T

Parameters

base32

The Base32 plugin

T | undefined

Returns

asserts base32 is T

Throws

If Base32 plugin is not set

Released under the MIT License.