ConservationInternational / COA001

COASST Database App & API
0 stars 0 forks source link

User sign up api #6

Closed seansu4you87 closed 9 years ago

seansu4you87 commented 9 years ago

Basic code for user sign up. The model is HEAVILY simplified right now. I'm waiting on flow diagrams/more context to figure out what exactly the columns and whatnot need to be.

d-g-h commented 9 years ago

@seansu4you87 I'm using JWT on another project (cookie storage, but I want local storage) Do you have plans for that? I don't think we mentioned this JWT detail.

seansu4you87 commented 9 years ago

There's a hapi auth plugin for that. This is for authentication right (not sure what you mean by local storage here)

d-g-h commented 9 years ago

The frontend needs to store the JWT somewhere to call the API. This token can be stored in a cookie, localStorage, or windowStorage

https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API

seansu4you87 commented 9 years ago

Oh got it, localStorage on the browser. I thought you were talking about the API On Tue, Feb 10, 2015 at 10:08 AM Dave Hall notifications@github.com wrote:

The frontend needs to store the JWT somewhere to call the API. This token can be stored in a cookie, localStorage, or windowStorage

— Reply to this email directly or view it on GitHub https://github.com/RadishLab/COA001/pull/6#issuecomment-73750541.