Skip to main content

Authentication APIs

Initiate Login​

Initialize a login request for a user.

POST /dapp/initiate-login

Headers​

HeaderValueDescription
client_idYOUR_CLIENT_IDYour unique client ID
client_secretYOUR_SECRET_KEYYour secret key
content-typeapplication/jsonContent type of the request

Body​

NameTypeRequiredDescription
redirectUrlstringYesURL to redirect after login completion

Response​

{
"redirectUrl": "MASWALLET_FRONTEND_URL/sign/login/{sessionId}",
"sessionId": "unique-session-id"
}

Verify Login Signature​

Verify the signature provided by the user to complete the login process.

POST /dapp/verify-login-signature

Headers​

HeaderValueDescription
client_idYOUR_CLIENT_IDYour unique client ID
client_secretYOUR_SECRET_KEYYour secret key
content-typeapplication/jsonContent type of the request

Body​

NameTypeRequiredDescription
noncestringYesThe login session nonce
signaturestringYesThe signature to verify
walletAddressstringYesThe wallet address that signed