Auth

Sign In

Authenticates a user by verifying the signed message from their wallet. Returns a JWT access token upon successful verification.

post/api/v2/{portalId}/auth/signin

Request

  • Base URL
    https://portal-api.magna.so
  • Auth
    none declared

Path parameters

portalIdstring uuid required

unique portal id (provided by Magna)

Request body

walletstring required

wallet address to login with

platform'EVM' | 'MOVE' | 'SOLANA' | 'OTHER' required
messagestring required

message that was signed

signaturestring required

signed message from the wallet owner

Response

Ok

accessTokenstring required

JWT access token for authenticated requests

expirationstring date-time required

access token expiration date

Example response

{
  "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwid2FsbGV0IjoiMHhmMzlmZDZlNTFhYWQ4OGY2ZjRjZTZhYjg4MjcyNzljZmZmYjkyMjY2IiwiaWF0IjoxNTE2MjM5MDIyfQ.-fu_kTkRsmXqWwwrmsSgb78S504bkkZXp_e92RaJTw0",
  "expiration": "2024-12-31T23:59:59.000Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.