kahmali / meteor-restivus

REST APIs for the Best of Us! - A Meteor 0.9+ package for building REST APIs https://atmospherejs.com/nimble/restivus
MIT License
544 stars 117 forks source link

Time expire token when login! #281

Open tanmynguyen opened 7 years ago

tanmynguyen commented 7 years ago

Hi @kahmali ! I found a issue. When i used login provide by Meteor with method Meteor.loginWithPassword() then i saw services.resume.loginTokens = [1: {when: ...., hashedToken: ....}]. But when I login with REST API api/login then services.resume.loginTokens = [0: {hashedToken: ....}] not have when. So i think it login forever and hasn't time expire token screen shot 2017-06-28 at 10 47 51 p/s: How do time expire token after login with rest api: api/login

poojabansal commented 3 years ago

@tanmynguyen were you able to figure this out?