What's one law you would change in your country?

2022.01.21 14:36 rumpus420 What's one law you would change in your country?

submitted by rumpus420 to AskReddit [link] [comments]

2022.01.21 14:36 venir_dev Login best practices on SvelteKit

Hi there!
I've never been a web developer, although I'm a CS graduate with some previous Flutter experience. Svelte is changing that and I'm so happy about it. Thanks to this amazing community I've learned so much about the web I had no idea about before. And Svelte / SvelteKit made this SO easy: thanks!
Anyways, I have a trivial yet troublesome problem. For a real-world application my SvelteApp has to query an external login endpoint (yes, you've guessed it, it's not a SvelteKit endpoint); it's a classic email+password login endpoint that returns a cookie (Set-Cookie in the header - nothing fancy, right?).
Now... I've followed several tutorials and examples, and I've done the following:

export async function handle({ event, resolve }) { let cookies = event.request.headers.get('cookie'); // Now we have a session that the Client can use to make further API calls! Yay! event.locals.session = cookies; return resolve(event); } export async function getSession(event) { const cookie = event.locals.session; return cookie ? { cookie: cookie } : {}; } 
The problem is that the variable cookie is never set. Using console.log shows null and undefined. Here's my login.svelte doing the POST call to such endpoint. NOTE: the endpoint works and returns a proper Cookie as expected and tested via Postman.
   My title!  
In my index.svelte file I just wanna read and show such cookie, just to be sure that we're authenticated and we can view some protected routes; if we're unauthorized, we're supposed to login, so a redirect is implemented in such case.
   Testing, testing; 1, 2, 3.  

Hey {user}! This a cookie: {auth}. Wow!

What happens is that I never get to see index.svelte. I just get redirected to the login page. Nothing happens when I click the login button.
Where can I read about best practices - or better - just some practices to properly handle protected routes, cookies, auth / security and so on?
Since I have previous experience in Flutter, here's what I'd do:
  1. Call the Login endpoint;
  2. Save the cookie from the header;
  3. Save it in some state management solution;
  4. Retrieve it, whenever.
What am I supposed to do with SvelteKit, instead, considering I want to fully exploit its traits?
submitted by venir_dev to sveltejs [link] [comments]

2022.01.21 14:36 bargle0 Refried beans, Ro-Tel, and chicken

Refried beans, Ro-Tel, and chicken submitted by bargle0 to shittyfoodporn [link] [comments]

2022.01.21 14:36 elementastic Anyone else having issues with their settings not saving on PC?

keep changing my settings to fullscreen but everytime I close and reopen the game it resets all my resolution and other settings.
submitted by elementastic to YuGiOhMasterDuel [link] [comments]

2022.01.21 14:36 GreenBikinikatyperry Natalie portman

Natalie portman submitted by GreenBikinikatyperry to CelebsLeggy [link] [comments]

2022.01.21 14:36 GeoffdeRuiter #53

Snowboarding at night in Finland Pipe beveller in action
How a piano key works : gifs
Tatami Mat trimming : oddlysatisfying
Bending some mild steel
(1) How plywood is made : ManufacturingPorn
How Plywood Is Made GIF | Gfycat Pressing matters!
(1) Help the dog eat. : aww
Extra Smooth Hydraulic Press Action : oddlysatisfying
Banff National Park, Canada. [OC] [4032 × 3024] : EarthPorn
i see stars. i see stars : oddlysatisfying
Horses love their balls - GIF - Imgur
I found a video of a mouse eating spaghetti. : aww
Almost : funny
HD Post Driver with Country Upgrade : specializedtools
Bread slicer
Pop-Up Headlights : oddlysatisfying
When the human won't give you scritches : aww
Rainbow falling into place : oddlysatisfying
I'm in awe at the size of this rooster : AbsoluteUnits
Love this process. Lichtenberg. : woodworking
There is no hole : confusing_perspective
Simon Lancaster showcasing a “Double Pendulum Chaos Demostration” : EngineeringPorn
The inside of an escalator
Upcycling Fire Hoses
submitted by GeoffdeRuiter to KidCurios [link] [comments]

2022.01.21 14:36 renegade667- Are there any karts that can be used for competitive racing under 5000€?

Preferably anyones that are homologated to any internationally competition standards like X30/KZ2/OK that can be used in senior (15+) classes. Preowned is ok too, the only one I could find new is an EasyKart 125cc but I don’t know if that can be run in any more competitive classes. Btw I’m from in Sweden.
submitted by renegade667- to Karting [link] [comments]

2022.01.21 14:36 UGisOnline Is it possible for a single shotgun shell to hit my arm and kill me outright ?

I spawned in as a scav on Killa’s body and someone left his helmet fully intact and an AACPC level 5 armored rig, so I took it and killed a PMC, then died to another scav by a single shotgun shell to the arm. I’m beyond salty. Can you really die from a single shell to the arm?
submitted by UGisOnline to EscapefromTarkov [link] [comments]

2022.01.21 14:36 iHave52Problems [USA] [Selling] Different Series

Prices are for whole sets and include shipping. Not looking to split any just yet. Everything is G4 or G5, read once and very minor yellowing.
Berserk volumes 1-4 / $45
Mob Psycho 100 volumes 1-6 / $40
One Piece Omnibuses (volumes 52-54, 79-81, and 82-84) / $40
Pokémon Mangas / $20 for all
The Devil is a Part-Timer volume 1 and Jujutsu Kaisen volume 9 / $8 each or free if you buy a set
If you have any questions or want to see more pictures just let me know, thanks for reading
submitted by iHave52Problems to mangaswap [link] [comments]

2022.01.21 14:36 Ghost__666 I just felt like pulling once for 5 gems to maybe get oni luffy instead i got this. My first ex only for 5 gems couldn't be luckier.

I just felt like pulling once for 5 gems to maybe get oni luffy instead i got this. My first ex only for 5 gems couldn't be luckier. submitted by Ghost__666 to OPBR [link] [comments]

2022.01.21 14:36 PsychologyNo1626 24 HOURS HOMELESS IN THE HOOD (WINTER)

24 HOURS HOMELESS IN THE HOOD (WINTER) submitted by PsychologyNo1626 to vlog [link] [comments]

2022.01.21 14:36 nikkawhutbkny Vado - Long Run Vol. 2 (2022) | Download, Stream, Tracklist

Vado - Long Run Vol. 2 (2022) | Download, Stream, Tracklist submitted by nikkawhutbkny to gettingdownhh [link] [comments]

2022.01.21 14:36 rainbowpoopstains [USA-MA] [H] MSI Radeon 580 8gb Armor OC [W] Paypal

Barely used MSI Radeon 580 8gb Armor OC.
Used less than 40 hours (was busy with work and didn't get to use it much, and was gifted a 5700XT so it's been sitting since then).
Was never over clocked or used for mining. Computer it was used in is fully air filtered so there is close to no dust (I keep my pcs very clean and all intakes are filtered).
Pictures. Will come in original antistatic bag but in a 5700xt box ( sorry I don't have the original 580 box) but is padded and will be extra secured before sending. Even has the extra power splitters (unopened) if you need them. Gpu was great the few times I got to use it, Temps were amazing and playing anything at high/ultra settings was great @1080p (I use a 120hz monitor with free sync). If not for getting the 5700xt id still be rocking this bad boy.
Pictures. https://imgur.com/a/sHgX8Gi
Looking for $300 for the amd 580 as it is practically brand new and no cosmetic flaws, never over clocked, and like I said has seen around only 40 hours of use.
submitted by rainbowpoopstains to hardwareswap [link] [comments]

2022.01.21 14:36 sethzard The Problem With NFTs

The Problem With NFTs submitted by sethzard to foldingideas [link] [comments]

2022.01.21 14:36 sea_bass_08 [Ottawa, ON] [H] Ryzen 5 1600 [W] Paypal, Local Cash

Selling my R5 1600 as I recently upgraded to a R5 3600. Includes the unused stock cooler from my 3600.
Asking $100 OBO
Opening to shipping, at buyer's expense.
Please comment before sending a PM
submitted by sea_bass_08 to CanadianHardwareSwap [link] [comments]

2022.01.21 14:36 Orangelover18 Were there new clothes added recently because I do not remember every having any of these?? (top, bottoms, shoes)

Were there new clothes added recently because I do not remember every having any of these?? (top, bottoms, shoes) submitted by Orangelover18 to Sims4 [link] [comments]

2022.01.21 14:36 GlitteringAd2571 Chat hay que hacer algo ¿opciones?

Chat hay que hacer algo ¿opciones? submitted by GlitteringAd2571 to GUIBELREVIEWS [link] [comments]

2022.01.21 14:36 cseteka Ace Ventura

Ace Ventura submitted by cseteka to TF2fashionadvice [link] [comments]

2022.01.21 14:36 clip_mirror_bot Destiny's opinion on responsibility for someone else's mental illness

Destiny's opinion on responsibility for someone else's mental illness submitted by clip_mirror_bot to livestreamfail_mirror [link] [comments]

2022.01.21 14:36 fuckitadventure Pnuema - Behind this pain

submitted by fuckitadventure to GuiltyPleasureMusic [link] [comments]

2022.01.21 14:36 K-mouse16 Skin issues

Lately, my skin has been really sore under my bag and I don’t know how to soothe it. I use the powder and protective spray but the skin is still very sore. It’s only the skin closest to my stoma. I used to be able to go 3-4 days without major pain but now I can only last 2-3 days.
submitted by K-mouse16 to ostomy [link] [comments]

2022.01.21 14:36 Joeyofpeltar Integrating Winget into SCCM

I have just started evaluating and learning SCCM. I have started by building it in my homelab environment. My place of business is also looking to have third party applications installed, and updated via SCCM.
I have looked at winget, but I am having a hard time getting it working with SCCM. I am trying to run the commands for installing notepad++ (winget install notepad++.notepad++), and while it works fine manually doing it on the workstation, it will not work as a powershell script. I have even tried having it open up a command prompt (cmd /c 'winget install notepad++.notepad++) with it still not functioning.
From what I have been able to search for in this subreddit and online is that winget doesn't support powershell commands.
If anyone has been able to get this working - please let me know how.
Thank you all.
submitted by Joeyofpeltar to SCCM [link] [comments]

2022.01.21 14:36 en_le_nil [POEM] From 'The Diamond Sutra', translated by Red Pine

As a lamp, a cataract, a star in space an illusion, a dewdrop, a bubble a dream, a cloud, a flash of lightning view all created things like this.
submitted by en_le_nil to Poetry [link] [comments]

2022.01.21 14:36 Lonely-Lifeguard6358 Ryerson visiting student

Hello, I'm looking to take a course in the spring/summer. I was wondering when York announces which courses they will offer in the spring/summer.
submitted by Lonely-Lifeguard6358 to yorku [link] [comments]

2022.01.21 14:36 HJenkinsRSN Rocky Romero Tests Positive For COVID-19

Rocky Romero Tests Positive For COVID-19 submitted by HJenkinsRSN to ringsidenewscom [link] [comments]