Top Tweets for #RefreshToken
> Implemented auth service with register, login, refresh, logout, forgot/reset password flow
> Using Mongoose User model with hashed password, verificationToken, resetToken, refreshToken
> Added bcrypt hashing -> token hashing -> secure persistence
@Hiteshdotcom @yntpdotme

🚀Day 39 of building a Fast Knowledge App Sensivika.
✅ Added progress graph to profile.
✅ refreshToken bug fixed.
Here is a glimpse of the current profile screen
Join at : https://t.co/CaFk0h0BZk

can you find the flaw in this code?
ofc there is logout() on 401 on refreshToken api and and getAccessToken(refreshToken) on 401 for rest of the apis.

Day 7 | Major upgrade! My user.controller.js now handles registration, login, logout, changeCurrentPassword, generateAccess & RefreshToken, fetching current user, updateAccountDetails, and getting all notes. Backend’s smarter,Authentication tighter,and user experience Next-level.
project update 🛠️
> added advanced auth using access tokens and refresh tokens
> added logOut controller
> learnt about db indexing
> added 3 index tables for refreshTokens table for faster queries
#buildinpublic

✅ Understood how middlewares (like Multer) make req.files available in controllers
✅ Learned validation tricks with field?.trim() === ""
✅ Understood $or in Mongo queries (findOne with username or email)
✅ Saw how Cloudinary uploads return file details & URLs
This controller does:
Validates fields
Checks if user exists
Reads req.files (from Multer middleware)
Uploads avatar + cover image to Cloudinary
Creates user in MongoDB
Removes password & refreshToken before sending response
Returns success response 🎉

Day: 40
🔹learned hpw tp use refreshToken to generate new accessToken
🔹Studied about MongoDB query operators and their usage
🔹Built a React app using NEWS API and TailwindCss
🔹Figured out how to log out the user from the system by clearing cookies and all.
Please help me!!!
Hey everyone, so I was making and endpoint for users to refresh their acces token. The endpoint was working. But I tried to change the refreshToken cookie(secure) to an older jwt token. To my surprise it still worked why did it work? @denicmarko and others
I'm a frontend developer exploring backend development. I have a question about JWT: Is it common to return the accessToken and refreshToken in JSON to the client, or should I use HTTP-only cookies? Tutorials seem inconsistent on this. and do I still need Authorization headers?
4. Make a getAuthToken() function that does following -
A) check if token is present.
B) if not then , authenticate and save those tokens.
C) if the token is expired refresh it with refreshToken from DB.
Using the 3rd party APIs with OAuth Flow is tricky.
Like whole the accessToken and refreshToken stuff feels like a mountain at start.
Let me know how you do it.
Here is how I do it -

@muneeb_wafaie I'm also passing the refreshtoken, hmm
thanks for info!
Last Seen Hashtags on Sotwe
抖奶
Seen from United States
menovýtrh
Seen from Brazil
izmirseks
Seen from Turkey
BacheloretteParty
Seen from United States
WarnockOssof4Senate
Seen from United States
WaterToChitradurga
Seen from United States
PotholeFixItChallenge
Seen from Korea
dalton2
Seen from Brazil
virgin dick
Seen from Germany
adanacd
Seen from Turkey
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
239.6M followers

Barack Obama 
@barackobama
118.6M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92.1M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.7M followers

X 
@x
60.6M followers












