Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve and fix documentation on Sveltekit ssr oauth #1413

Closed
wants to merge 2 commits into from

Conversation

itsfuad
Copy link

@itsfuad itsfuad commented Oct 8, 2024

What does this PR do?

This pull request includes changes to the src/routes/docs/tutorials/sveltekit-ssr-auth/step-7/+page.markdoc file to improve session handling and simplify the redirection process.

Improvements to session handling and redirection:

  • Changed the session cookie settings to httpOnly: true and sameSite: "lax" to enhance security and allow cookies on GET requests. (src/routes/docs/tutorials/sveltekit-ssr-auth/step-7/+page.markdoc)
  • Simplified the redirection process by removing the Headers object and using the redirect function directly. (src/routes/docs/tutorials/sveltekit-ssr-auth/step-7/+page.markdoc)

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)

Tested with my own production application.

Related PRs and Issues

(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)

Have you read the Contributing Guidelines on issues?

(Write your answer here.)
Yes

Using sveltekit's native redirect method and changed the sameSite sttribute to `lax`.
Copy link
Author

@itsfuad itsfuad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and ok.

@itsfuad itsfuad closed this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant