-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modified isJWT to use urlsafe base64 (also added) #1316
Conversation
Can fix the new merge conflicts? |
@profnandaa Resolved conflicts! |
Can remove the unrelated changes from the diff, showing 32 files touched. Make sure you've rebased with the latest |
@profnandaa Sorry for that. Have fixed it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets have a consistent variable naming. Use camelcase instead of pascal case for variable UrlSafeBase64 . Besides that , everything else looks good
@profnandaa @rubiin Fixed it! Please check. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
es/lib/isBase64.js
Outdated
export default function isBase64(str) { | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var urlSafeBase64 = /^[A-Z0-9_\-]+$/i; | ||
var default_base64_options = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: for the camelCase consistency...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has been fixed now! @profnandaa
Handles conflicts in #1277
closes #964 and closes #962