Message from @Roko

Discord ID: 542645479163297793


2019-02-06 09:37:06 UTC  

Its so good

2019-02-06 09:37:11 UTC  

<:yay:523032349563158528>

2019-02-06 09:42:22 UTC  

Nice :)

2019-02-06 09:46:43 UTC  

Hey, is there also a torrent link for HHH's content?

2019-02-06 09:54:24 UTC  

@MoonCore why do you have all these old drinks lying around

2019-02-06 09:57:07 UTC  

Yo @Roko - are you familiar with authentication

2019-02-06 09:57:22 UTC  

I’m going to need to learn auth for node with mysql dB

2019-02-06 09:57:33 UTC  

Could you send me some links?

2019-02-06 09:57:39 UTC  

Yes. If you're talking about API authentication, you should make use of JSON webtokens

2019-02-06 09:57:50 UTC  

Yeah, there’s a library called jwt

2019-02-06 09:57:57 UTC  

But what about db auth?

2019-02-06 09:58:02 UTC  

I recommend that you use a framework like Express for your server. It handles things like authentication

2019-02-06 09:58:08 UTC  

Oh cool

2019-02-06 09:58:15 UTC  

Is that db auth?

2019-02-06 09:58:19 UTC  

No

2019-02-06 09:58:25 UTC  

How can I do db auth

2019-02-06 09:58:45 UTC  

Web token for protecting routes right?

2019-02-06 09:58:52 UTC  

What the auth for a database

2019-02-06 09:59:21 UTC  

jwt will generate a web token and then you parse that through to a middle wear that will assess it

2019-02-06 09:59:24 UTC  

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

2019-02-06 09:59:58 UTC  

Could you send me a link - I don’t understand that

2019-02-06 10:00:20 UTC  

So there’ll be no need for DB auth if my web token work correctly ?

2019-02-06 10:00:35 UTC  

New drinks aint always good

2019-02-06 10:00:39 UTC  

Ehm..

2019-02-06 10:00:41 UTC  

Al of my knowledge is coming from a 20 min video I saw on the train this morning, so bare with me lol

2019-02-06 10:01:03 UTC  

I’ll be back In one pomodoro

2019-02-06 10:01:04 UTC  

@JDB There's two things.

Authentication for your Node backend

Authentication for your Database

2019-02-06 10:01:05 UTC  

I’m at work

2019-02-06 10:01:13 UTC  

Yeah - cool

2019-02-06 10:01:21 UTC  

So is node backend auth al about web tokens?

2019-02-06 10:01:22 UTC  

The connectiosn go like this: DB -> Backend -> Frontend

2019-02-06 10:01:30 UTC  

-> is an authentication step

2019-02-06 10:01:34 UTC  

Gotya

2019-02-06 10:01:40 UTC  

What do web token auth for

2019-02-06 10:01:44 UTC  

Just the front end?

2019-02-06 10:02:00 UTC  

A web token auth is to check if you're talking to the same user after they login. The authentication can also expire

2019-02-06 10:02:08 UTC  

Weirdest Shit Ive seen today

2019-02-06 10:02:18 UTC  

Gotya

2019-02-06 10:02:26 UTC  

A Brit Identifies as Gay Non-Binary Queer Muslim

2019-02-06 10:02:33 UTC  

I’ll be back in 25 - this is interesting shit