Skip to content

Smart Investing Revamp

Indrajit Roy edited this page Dec 14, 2023 · 1 revision

Auth Token Creation

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

Feature Set

  • Current
    • Only Smart Investing authToken support
    • Only Smart Investing transaction IDs
    • Any transaction ID creation intents are hardcoded.
  • 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 authToken creation support
    • Also any other partner transaction ID creation support
    • Logging - A separate UI that displays all the requests and responses sent to and received from the SDK.

Clone this wiki locally