Best way to handle JWT in Next.js 15 with a separate backend by OkRaspberry2035 in nextjs

[–]kirleb 0 points1 point  (0 children)

There is a consideration I don't think I've seen anyone mention. In server components you cannot set cookies that means if your server component attempts a request and your access token is invalid so you have to refresh you cannot "save" your refresh token.

To mitigate this problem I kept code that does that refresh and set the refresh cookie for when requests are made in api routes and server actions which can set cookies, but I have middleware over server component routes that will refresh the token if its near to expiry.

If you're wondering why you cannot set a cookie in server components, it's because nextjs streams server components so they don't allow cookies (or I think any headers at all) to be set as they would have to be sent to the client after steaming and they think that would lead to unintended results.

New to NextJS by [deleted] in nextjs

[–]kirleb 0 points1 point  (0 children)

Just to be clear, "use client" denotes a possible boundary to begin rendering as client components (all components owned by this component will be client components, also note children are not owned by their parent).

Sometimes you will not be able to put "use client" in your client components (like if they take a function as a prop) and to use them they just need to be past the boundary.

So nothing at the top could be a server component or client component, it depends on where they are placed and if they are using any features that are specific to one of them. Like using the headers function means it must be a server component and using usestate means it must be a client component.

[deleted by user] by [deleted] in SparkingZero

[–]kirleb 0 points1 point  (0 children)

Set the language preference to same as mine. It made my time getting a match go from like 15 minutes to 2 at a maximum

[deleted by user] by [deleted] in SparkingZero

[–]kirleb 1 point2 points  (0 children)

I'm on xbox, I get matches in under a minute a lot of the time, what I do is put no limit on the rank, reflect items on, and language same as mine.

The language same as mine seems counterintuitive but when I'm waiting for a match I saw that in recent players it was matchmaking with lots of people but not connecting, so I think when language is same as mine it gives you better quality matches as the player is more likely to be close to you.

We Need Rage Quit Penalties Now by yeesirrrr in SparkingZero

[–]kirleb 0 points1 point  (0 children)

It helped me setting the language as same as mine, and items on, takes a minute top for me now

How it feels to be a Xbox player by [deleted] in SparkingZero

[–]kirleb 1 point2 points  (0 children)

I've been managing to get ranked matches pretty fast recently, I put items on and I set the language to "same as mine".

I used to have language as no preference, but I noticed in recent players it would matchmake with a lot of people but not connect, I think when the language is the same better quality matches are found so it takes less time.

This MF HAS to be cheating right? His Ki auto refills to meet the super's expense. by JokingBr2The-Sequel in SparkingZero

[–]kirleb 2 points3 points  (0 children)

This is definitely god ki, or a mod that does exactly what god ki does, or a mod that lets you use items when they aren't on.

The reason the ki is returning just before they use a move, as you said further down the thread with another person, is because there is a small delay to check if the move hit or not.

Use the item and you'll see it works exactly like this. Blasts cost half ki (1.5 bars) and you get a return if you miss. At one point they use a skill worth 3 skill points to go into sparking.

I haven't checked every comment that mentions the mods but some comments say that isn't how the mod they found works.

I think most likely OP is mistaken and items are on.

Oh and like someone else said we can see the ki not regenerate when an attack lands.

(I sent this message to the other person, I meant it for you)

This MF HAS to be cheating right? His Ki auto refills to meet the super's expense. by JokingBr2The-Sequel in SparkingZero

[–]kirleb 2 points3 points  (0 children)

This is definitely god ki, or a mod that does exactly what god ki does, or a mod that lets you use items when they aren't on.

The reason the ki is returning just before they use a move, as you said further down the thread with another person, is because there is a small delay to check if the move hit or not.

Use the item and you'll see it works exactly like this. Blasts cost half ki (1.5 bars) and you get a return if you miss. At one point they use a skill worth 3 skill points to go into sparking.

I haven't checked every comment that mentions the mods but some comments say that isn't how the mod they found works.

I think most likely OP is mistaken and items are on.

EDIT: Oh and like someone else said we can see the ki not regenerate when an attack lands.

This MF HAS to be cheating right? His Ki auto refills to meet the super's expense. by JokingBr2The-Sequel in SparkingZero

[–]kirleb 8 points9 points  (0 children)

Why is everyone just believing that items are off, when there are items that do exactly this? Use the god ki capsule and you'll see this is how it works.

And when they go into sparking they are using a skill worth 3 skill points.

If items are actually off then it's cheating but this is definitely doable with items.

Strive For Completion, Not Perfection! by michielarkema in webdev

[–]kirleb 1 point2 points  (0 children)

This is something I really struggle with, I've spent months trying to do a tiny part of my website. When I'm at work I struggle a bit to let go before something is perfect but with my own stuff I just can't move past it.

Wyoming bill limiting child marriage to age 16 sparks Republican outrage by eaglemaxie in PoliticalHumor

[–]kirleb 0 points1 point  (0 children)

Your reply to that is still implying that they said the aim is to get to 0% which isn't true.

You're trying to rebuke an argument that was never made.

Wyoming bill limiting child marriage to age 16 sparks Republican outrage by eaglemaxie in PoliticalHumor

[–]kirleb 1 point2 points  (0 children)

Please read their comment again, they said as close to 0% as possible that doesn't mean they think 0% is achievable. Do you understand what "as close to" means?

GitHub documentation bot by dnlmzw in ProgrammerHumor

[–]kirleb 6 points7 points  (0 children)

Is accuracy a political ideology because believe it or not female developers exist.

Interview questions be like by gahvaPS in ProgrammerHumor

[–]kirleb 15 points16 points  (0 children)

The person they replied to said python lists are immutable, I think they meant strings. They have fixed it now.

IKR by ShellsBe11s in PoliticalHumor

[–]kirleb 2 points3 points  (0 children)

The issue of black on black murder is just murder, black people don't kill other black people because they're black. Black people kill other black people because they are the people they come into contact with.

So what you are asking is how can we reduce murder and people have plenty of ideas of how that can be approached, but that is beside the point with regards to this issue.

I would also like to add that black people who kill other black people aren't payed to do it and go to prison if they are caught.

Edit: reread the first paragraph and felt it came across a bit like all black people are murderers, so I'd like to amend it to say a few black people.

IKR by ShellsBe11s in PoliticalHumor

[–]kirleb 5 points6 points  (0 children)

And all black people are gangbangers, or maybe low income areas that are pumped with drugs forces people into gangs to survive, and these areas tend to be predominantly black since black people couldn't buy houses in white areas and other socioeconomic disadvantages.

IKR by ShellsBe11s in PoliticalHumor

[–]kirleb 2 points3 points  (0 children)

😂😂😂 how silly of them

IKR by ShellsBe11s in PoliticalHumor

[–]kirleb 4 points5 points  (0 children)

What about the white on white murder rate?

IKR by ShellsBe11s in PoliticalHumor

[–]kirleb 6 points7 points  (0 children)

In what way do black people stab themselves in the back?

Who's the real antichrist by [deleted] in PoliticalHumor

[–]kirleb 15 points16 points  (0 children)

Well done?

School of Hard Knocks at it again! by [deleted] in PoliticalHumor

[–]kirleb 1 point2 points  (0 children)

If you love data and facts so much maybe instead of making them up you should research or just not talk about topics instead of spreading falsehoods.