JWT decode vs verify - Understanding which to use for token verification

JWT decode vs verify - Understanding which to use for token verification

Dillion Megida

3 года назад

26,690 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Ibrahim Motani
Ibrahim Motani - 01.10.2023 13:58

Thank you for your clear explanation

Ответить
Flyers Flyers
Flyers Flyers - 12.07.2023 03:47

What font are you using in the IDE?

Ответить
Villific
Villific - 02.04.2023 12:52

How do you verify a client assertion JWT that has no secret with algorithm ECDSA?

Ответить
A Bit Of Everything
A Bit Of Everything - 27.02.2023 19:51

what the fuck..... i knew it would be a shit video!

Ответить
Daniel Feneck
Daniel Feneck - 17.02.2023 05:30

It really depends on the library you're using, for example if your using the PHP Firebase\JWT library to decode a token, then a key is an expected argument as its verifying the signature as well as decoding the payload in the same function.

You should check to make sure your library is verifying, as you may need to call verify manually.

Ответить
Masoom Sanadi
Masoom Sanadi - 05.12.2022 08:50

liked ur vid for the last line.
freshers must pay attention on verify and not decode 🙂

Ответить
aymaneu
aymaneu - 27.11.2022 16:46

thx bro very much, i was having problem of getting the id now bcs of of verify i can confirm if the user valid and get all info that i need

Ответить
Kobbi Mensah
Kobbi Mensah - 17.11.2022 19:35

you have two account ??

Ответить
Youtube-person0098
Youtube-person0098 - 02.10.2022 23:01

Finally found an explanation.

Ответить
raini
raini - 12.09.2022 17:36

I have a question, if I have my Microsoft VerifiedIds on a dot jwt how can I use them to log in into my accounts? I have the 13 words too for decrypt

Ответить
NN
NN - 28.04.2022 02:48

Thanks

Ответить
Teguayco Gutiérrez González
Teguayco Gutiérrez González - 09.03.2022 12:53

Concise, useful explanation. Keep it up!

Ответить
Ujjval W
Ujjval W - 23.01.2022 16:30

Brother I have a doubt and I am new to this and cannot find an answer on Google.

I have multiple users in database and I am using thier unique email id and a secret to sign a token for each user.

And I am using this verify method to authorise a request. But any user token is working and I am able to delete any of the users using only any 1 of the tokens, doesn't matter if the token belongs to the user i want to delete or not.

How do I make sure that only the users unique token can be used to delete itself (the user deletes itself).

Ответить
Harsh Sharma
Harsh Sharma - 18.01.2022 18:33

Hey, that's exactly what I'm looking for. I've a small doubt tho. I actually want to save a few user data in the local storage on the client side but i would like to keep it encrypted. The reason I want to do this is so that when the user opens the site on a new tab, i can check if a token is present in the browser, and if there is a token, i would like to send it to my backend to retrieve the payload and send back the relevant user details back to the client. Do you think using the verify function would be a good way to persist the login in new tabs.

Thanks for the video!! SUBSCRIBED

Ответить
Alan Naidon
Alan Naidon - 28.12.2021 01:22

Nice video, Dillion. Thanks!

What if I want to make sure the token is VALID, that the token wasn't altered. Would Verify be enough?

Ответить
Owais Sonija
Owais Sonija - 26.12.2021 14:48

Thanks for a such crisp explanation!

Ответить
Ghost writer
Ghost writer - 29.09.2021 22:24

thnx man nice video really what I needed

Ответить