-
Notifications
You must be signed in to change notification settings - Fork 4
Smart Investing Revamp
Indrajit Roy edited this page Dec 14, 2023
·
1 revision
authToken -> JWT -> SCGateway.init("authToken")
JWT -> A random string that is encoded with a certain payload and signed by a certain secret
JWT.io
payload -
{
// Only for SCGateway authToken creation
"guest": true,
// or
"smallcaseAuthId": "string",
// Only for loans interaction Token creation
"interactionId": "string"
}secret -
Go to smallboard -> Gateway Details -> Open relevant partner card -> Secret
Create a auth Token Go to jwt.io -> Paste your relevant payload -> Get your partner's secret & paste in the 256-bit-secret section You will have the final JWT on the left
-
Current
- Only Smart Investing
authTokensupport - Only Smart Investing
transaction IDs - Any transaction ID creation intents are hardcoded.
- Only Smart Investing
-
Revamp
- All existing features of Current
- Centralise all reusable methods and classes. eg. creation of TxnID
- When triggering any intent, the global states of the app should be respected
- Also any other partner
authTokencreation support - Also any other partner
transaction IDcreation support - Logging - A separate UI that displays all the requests and responses sent to and received from the SDK.