Message from @JDB
Discord ID: 542646052818386967
Is that db auth?
No
How can I do db auth
Web token for protecting routes right?
What the auth for a database
jwt will generate a web token and then you parse that through to a middle wear that will assess it
You want your backend to directly connect to your DB. Not your clients.
A good way is to set your DB authentication data in environment variables and read those within your backend code
Could you send me a link - I don’t understand that
So there’ll be no need for DB auth if my web token work correctly ?
New drinks aint always good
Ehm..
Al of my knowledge is coming from a 20 min video I saw on the train this morning, so bare with me lol
I’ll be back In one pomodoro
@JDB There's two things.
Authentication for your Node backend
Authentication for your Database
I’m at work
Yeah - cool
So is node backend auth al about web tokens?
The connectiosn go like this: DB -> Backend -> Frontend
-> is an authentication step
Gotya
Just the front end?
A web token auth is to check if you're talking to the same user after they login. The authentication can also expire
Weirdest Shit Ive seen today
Gotya
A Brit Identifies as Gay Non-Binary Queer Muslim
I’ll be back in 25 - this is interesting shit
Well, there goes my faith in Britain
So: User logs in -> You give them a token that's valid for X days/hours. Once a user does a request to your server, you check the token and it's validity. Usually your framework or a jwt library has methods to do this for you.
Churchill is dissapointed by this outcome
Your faith lasted longer then most
This is what Multiculturalism + Liberal Ideas gets
You can just go be Muslim you're fine
It's us white kids thatre in trouble
Id be willing a white person out
Help
We are still Humans regard less of Race or ethnicity
Or Skin Colout
Yeah but when we all gotta praise allah you're ahead of the game
Wdym, I havent prayed for awhile
Who would want to Pray (No offense) to God 5 times a day In different times