User Information Endpoint
This endpoint provides information such as a first and last name, an identification token and a bit more.
/api/userInfo/{token}
Example
https://caulfieldsync.vercel.app/api/userInfo/sampleToken
An example response would be as follows (limited information for privacy, try calling it yourself to see your information):
{
"member": {
"id": "a2w0mjhff1fadg993e81ftr06",
"firstName": "Garv",
"lastName": "Shah",
"preferredName": "Garv",
"roles": [
{
"title": "STUDENT",
"__typename": "MemberRole"
}
],
"__typename": "Member"
},
"xhqToken": "eyJhbWJlcizI1NiVCJ9.eyJ0b2tlblR5cGUiOiJNRU1CRCI6IkpXI6Ik1lBBNURCODcVIiLCJpZCIsIn0wMURCRTZCVzbGsImNvbWQiOjE2MDMzODUxNTF9.F-1v-lTBQHnJFfz_IWjhbcS71dW5pdHktY2dzLXByb2QiLCJp1bml0eU5hbWUiOiJjciOiJIUR5c5UEn4rpchz-O2swyMlJGWEMwUDJIWiIb21tYXqF_K"
}