User Token Manager

Temporary User Tokens maybe generated for a number of reasons. An example usecase scenario for Authentication would be automatically logging the user in once after registration.

The SSOfy\Laravel\UserTokenManager service class can be instantiated either directly or via Facade:

$token = SSOfy::userTokenManager()->randomStringToken($userId);

You may also generate OTP for identity verification for Email and SMS:

$token = SSOfy::userTokenManager()->randomDigitsToken($userId, $ttl, $length);

The package provides commands for token generation and verification. When doing tests, commands can be used to generate authentication tokens or email/sms verification codes.

php artisan ssofy:token-gen USERID
php artisan ssofy:token-verify TOKEN
php artisan ssofy:token-delete TOKEN
ssofy Knowledge Base
At our core, we believe that staying up-to-date with the latest trends and advancements in Authentication and related areas is essential. That's why we take great pride in keeping you informed with the latest insights, updates, and news in this rapidly evolving landscape.

Do you need support?
SSOfy is by Cubelet Ltd.
Copyright © 2024 Cubelet Ltd. All rights reserved.