Last active
August 3, 2020 16:41
-
-
Save alexastrum/61d7d3defc0246be2119cdef777874ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const alg = "ES256"; | |
const verifyResult = verify( | |
deviceToken, | |
alg, | |
device.data.publicKey | |
); | |
if (!verifyResult || header.alg !== alg) { | |
res.send({ | |
message: "Invalid JWT!", | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment