Day-55 Training At Ryaz
mahin651
Posted on March 31, 2022
- Date:31/03/2022
- Day:Thursday
Today, I started at about 10:40 am as I was successful to initialise the jwt tokens and I was to test it for authorisation of the user by using the bearer token. so, firstly I started with it and tested it and it was working after this the thing left was to test it with postman so after this I sent a token via post request and after this I copied the token and enabled the authorization and pasted with bearer in front of it and triggered the send button so, the text we receive it 'this is protected' and all the data that is declared as const is sent in the post request and after this I was to test without the token and I disabled the authorisation so, I triggered the send button and got as 'forbidden' so after this the jwt token were successfully implemented it seems to be like if user is known and having the unique token i.e entry pass he would able to acess the data and view it but if user is not registered and not known so, he/she would be forbidden for access. so, this way my day ended up and I was able to complete the jwt token.
Posted on March 31, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.