Message from JavaScript discussions

July 2018

— Guys is it safe approch to send jwt as a query parameter?
for oauth2 authentication i am redirecting user from app to oauth page. then i am sending acess token to server. server verifies user and redirects to client with jwt in url as query parameter

Message permanent page

— 

Yes, you can use jwt anywhere, the only security concern is generally: WHAT data is stored in the token

— Because remember: the user can see the data

— Just storing user id

— Good

— It doesn't matter if it's in a cookie, localStorage, an email, query param, a form, etc

— Thanks :D

— Try this
[] == false it will return true then try
if([]){
console.log('what the hell')}

— Would be great help if someone could explain this behaviour

— if([]) is the same as [] == true

— Which is false

— No wait...