HackRU / lcs

The backend for HackRU's website. Manages the user system.
http://hackru.org
MIT License
6 stars 5 forks source link

investigate validate endpoint #75

Closed mjrb closed 5 years ago

mjrb commented 5 years ago

last time I checked it was broken. not sure why. this is needed by teambuilder. also make sure it gives the expiration of the token

mjrb commented 5 years ago

so apparently validate works, but it gives you the entire user object. perhaps for the teambuilder use case we should just have it return the token object that coresponds to the token you passed so you can just easily check the expiration. @ryanisaacg does frontend use this endpoint for getting user data, or does it use /read?

mjrb commented 5 years ago

Also it seems to always giving internal server error instead of the actual error

ryanisaacg commented 5 years ago

Frontend uses /read and should never be touching /validate I think

mjrb commented 5 years ago

whatever