Next.js · Senior · Question 70 of 75

Why should proxy.ts do only optimistic auth checks?

Explanation

Slow checks in proxy delay every navigation. A data access layer that verifies the session before reading data is the source of truth.

Further reading

Problem with a question

Next.js · Senior · question 70

Test yourself

Take the Next.js · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz