Message from @JDB
Discord ID: 542645625255231490
<:yay:523032349563158528>
Nice :)
Hey, is there also a torrent link for HHH's content?
@MoonCore why do you have all these old drinks lying around
I’m going to need to learn auth for node with mysql dB
Could you send me some links?
Yes. If you're talking about API authentication, you should make use of JSON webtokens
Yeah, there’s a library called jwt
But what about db auth?
I recommend that you use a framework like Express for your server. It handles things like authentication
Oh cool
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
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
What do web token auth for
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