Verify If Still Logged In

POST /Auth/Verify/Login

This process looks at the JWT token sent in and returns information about it. Token can be stored as a cookie. Secret Hmac and page href Required. Cache Time 1 Hour.

application/json

Body

  • Href string

    required copy of document.href since referrer is not always accurate

  • Token string

    optional jwt token returned from a previous call to /Auth/Verify/Login

  • Username string

    the username entered - or nothing if already logged in or a public page

  • Password string

    the password entered - or nothing if already logged in or a public page

Responses

  • 200 application/json

    Login successfull

    Hide response attributes Show response attributes object
    • Expires number

      Seconds until the jwt token expires and login is valid. If expired, it returns negative seconds

    • FirstName string

      the First Name of the logged in user

    • LastName string

      the Last Name of the logged in user

    • Parent number

      Parent User Number

    • Custno number

      Customer User Number (frequently the same as parent)

    • LoginId number

      The current user Login Id

    • LoginIp string

      the Ip address of the logged in user

    • LoginTime DateTime

      the date/time logged in (YYYYMMDDHHMMSS)

    • PrevLogin DateTime

      the date/time previously logged in (YYYYMMDDHHMMSS)

POST /Auth/Verify/Login
curl \
 --request POST 'https://wapi.strandvision.com/v1.0/Auth/Verify/Login' \
 --header "X-ApiKey: $API_KEY" \
 --header "Authorization: X-apidate $ACCESS_TOKEN" \
 --header "Authorization: X-apihmac $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"Href":"https://www.whyreadthemanual.com/login","Token":"base 64 encoded stuffs","Username":"username","Password":"password"}'
Request examples
{
  "Href": "https://www.whyreadthemanual.com/login",
  "Token": "base 64 encoded stuffs",
  "Username": "username",
  "Password": "password"
}
Response examples (200)
{
  "Valid": 1,
  "Custno": 10028,
  "Logind": 1,
  "Parent": 10028,
  "LoginIp": "192.168.200.20",
  "Message": "Welcome Nick.  Your last login was 28 days ago",
  "LastName": "Doe",
  "FirstName": "John",
  "LoginTime": 20250101000000,
  "PrevLogin": 20240101000000
}