How do you verify authorization with multiple microservices?

The easy way to use a middleware that checks if the user is authorized or not, but what if we want to scale to other microservices?

reddit.com
u/badboyzpwns — 21 hours ago
▲ 13 r/node

Should we truncate our test DB in a setup file to impact every test?

I read and it seems at every test we want to truncate our table. Is this the standard practice? so we could have this in our setupfile that impacts all tests:

// jest.setup.js

const db = require('./db');

beforeEach(async () => {

await db.raw('TRUNCATE users, posts, comments RESTART IDENTITY CASCADE');

});

And then as you add more tables, just add the table to the truncate query above.

reddit.com
u/badboyzpwns — 1 day ago
▲ 6 r/webdev

What metrics do you guys measure in the frontend?

Such as accecibility with axe devtools, FCP with datadog, error tracking, etc

reddit.com
u/badboyzpwns — 2 days ago
▲ 12 r/node

What are the best practices of integartion tsting in Node.js?

We test the routes, mock the database and use supertest?

reddit.com
u/badboyzpwns — 2 days ago

Any Canadians renew their passport with expedited process in Bangkok?

My passport got wet from the rain :( Is the 10 buisness or even less option offered here?

reddit.com
u/badboyzpwns — 4 days ago

My passport got damped, the stamps bled out, will this be an issue?

Im visting SEA/East asia with my Canasian Passport. I think it should be fine? My biometeics page are dry and every other page seemed fine. Had anyone else have the same experience?

u/badboyzpwns — 6 days ago

Passport got damp, stamps are smudged out. Will this be an issue :(?

Biometric page was luckily ddry, the rest of my stamps are normal

u/badboyzpwns — 7 days ago
▲ 0 r/travel

Passport got wet, visa pages got damp and some stamps are fading

Bio page was very dry. Some stamps bled to the other page. Will this become an issue :( Got on heavy rain without an umbrella 😅

reddit.com
u/badboyzpwns — 7 days ago
▲ 0 r/Taipei

Dumb idea to visit suring summer but only sightsee at night?

This way I avoid the heat lol. I figured I can see most tourist stuff in Seoul if I do this, what do you guys think? I can fill my daytime with work so its not a biggie. I can visit indoor activities during the day too.

reddit.com
u/badboyzpwns — 7 days ago
▲ 2 r/travel

Did you like Busan if you are not into beaches?

I like Cities much more as there is much to do and I love infrasteucture. The only beach city I loved was Rio because it was so unique in its landscape

.Im wondering if I should spend another 2 full days or 3 full days im Korea for Busan.

reddit.com
u/badboyzpwns — 7 days ago
▲ 0 r/Taipei

Is the weather 'nicer' than usual?

Im in Beijing, supposedly its supposed to be very hot this time around but the weather is unusual now. Its hot but very bearable with a fan and umbrella. Is it the same here? I might go in the next 3 weeks if its around the same temperature.

reddit.com
u/badboyzpwns — 10 days ago

How is the weather here now?

Im in Beijing, supposedly its supposed to be very hot this time around but the weather is unusual now. Its hot but very bearable with a fan and umbrella. Is it the same hrre? I might go in the next 3 weekd if its around the same temperature.

reddit.com
u/badboyzpwns — 10 days ago

Do chinese people reply to texts fast?

Im a foreigner and I met a few locals as a tourist and people seem to reply quickly! Is this normal? on my country its acceptable to wait a reply in a day or a few days

reddit.com
u/badboyzpwns — 13 days ago