Skip to content

otplib API Documentation / @otplib/core / utils / requireBase32Plugin

Function: requireBase32Plugin() ​

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

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

Require Base32 plugin to be configured

Type Parameters ​

T ​

T

Parameters ​

base32 ​

T | undefined

The Base32 plugin

Returns ​

asserts base32 is T

Throws ​

If Base32 plugin is not set

Released under the MIT License.