Xbasic

NodeServices::TimeBasedToken Class

Description

Time based tokens are typically used in features like two factor authentication. A time based token is a token that automatically expires after a short period of time. The NodeServices::TimeBasedToken class can be used to generate or validate a time based token.

Methods

CheckToken Method

Check validity of token

Token Method

Generate a time based token given a provided secret.

See Also