Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

0.8 client decode jwt #314

Merged
merged 6 commits into from Oct 16, 2016
Merged

0.8 client decode jwt #314

merged 6 commits into from Oct 16, 2016

Commits on Oct 14, 2016

  1. Only set app token if it’s not expired.

    Modifies the getJWT function to return undefined if the token has expired.  This gives you a quick way of knowing if the user is (more than likely) authenticated without having to make a request.
    marshallswain committed Oct 14, 2016
    Copy the full SHA
    4f41178 View commit details
    Browse the repository at this point in the history
  2. Allow client to decode token.

    This adds an `app.decodeJWT` function that decodes a token synchronously.  With a non-expired token, it returns the token payload, otherwise it returns undefined.
    
    Will need docs before publishing 0.8 or whichever version we’re doing next.
    marshallswain committed Oct 14, 2016
    Copy the full SHA
    4120dd4 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2016

  1. adding instanbul code coverage

    ekryski authored and marshallswain committed Oct 16, 2016
    Copy the full SHA
    0ee8948 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    ab060ab View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    eea9405 View commit details
    Browse the repository at this point in the history
  4. Make API better match the server.

    The only difference is that verifyJWT and getJWT are sync, so they don’t return promises.
    marshallswain committed Oct 16, 2016
    Copy the full SHA
    b668327 View commit details
    Browse the repository at this point in the history