Message from @JDB

Discord ID: 542646052818386967


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

2019-02-06 10:02:53 UTC  

Well, there goes my faith in Britain

2019-02-06 10:02:53 UTC  

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.

2019-02-06 10:03:12 UTC  

Churchill is dissapointed by this outcome

2019-02-06 10:04:24 UTC  

Your faith lasted longer then most

2019-02-06 10:04:58 UTC  

This is what Multiculturalism + Liberal Ideas gets

2019-02-06 10:07:56 UTC  

You can just go be Muslim you're fine

2019-02-06 10:08:05 UTC  

It's us white kids thatre in trouble

2019-02-06 10:09:21 UTC  

Id be willing a white person out

2019-02-06 10:09:26 UTC  

Help

2019-02-06 10:09:52 UTC  

We are still Humans regard less of Race or ethnicity

2019-02-06 10:09:57 UTC  

Or Skin Colout

2019-02-06 10:10:24 UTC  

Yeah but when we all gotta praise allah you're ahead of the game

2019-02-06 10:10:50 UTC  

Wdym, I havent prayed for awhile

2019-02-06 10:11:26 UTC  

Who would want to Pray (No offense) to God 5 times a day In different times