Backend response handling - SDKs
Secuuth provides the below response payload after successful authentication. Your frontend is responsible to send this payload to backend.
Typical backend flow is below
Validate Access and Id tokens in the middleware
Redirect to login flow if tokens are invalid
Continue the flow if tokens are valid
Decode Access token to extract user information and check if exists in database
Create user if does not exist
Continue the flow if user exists
Set session token in the cookie, Secuuth's access token can be used as session token
Example
Node.js
Install SecQure Node Package
npm i secuuth-jwt-js-sdk
Python
pip install secuuthTokenPythonSdk
PHP
Install the SecQure latest package using composer
composer require secqure/validatetoken v1.0.2
Or integrate the SecQure PHP Library directly from github
Last updated