Skip to content

Conversation

@slintak
Copy link
Contributor

@slintak slintak commented Jul 18, 2017

To make access token shorter, do not add user_claims if they are empty ({} or None). For backward compatibility, add user_claims={} to encoded object if missing in token.

If `user_claims` are empty dict (`{}`) or `None`, do not add them
to JWT. This should result in shorter token length.
@coveralls
Copy link

coveralls commented Jul 18, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 2baf220 on slintak:master into 2d866a1 on vimalloc:master.

@vimalloc vimalloc merged commit 7b5016f into vimalloc:master Jul 18, 2017
@vimalloc
Copy link
Owner

This looks great! Thanks for contributing 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants