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

Add helper function and add it to the nextjs example #32

Open
gen1us2k opened this issue May 18, 2022 · 0 comments
Open

Add helper function and add it to the nextjs example #32

gen1us2k opened this issue May 18, 2022 · 0 comments
Assignees

Comments

@gen1us2k
Copy link

Right now it's not clear how to pass cookies using Axios for next-edge integration.

As a solution it would be best to have a helper function here

  const test = await fetch(`${process.env.ORY_SDK_URL!}/sessions/whoami`, {
    headers: {
      "Cookie": "ory_session_xxx=....; ory_csrf_xxx=....",
    }
  })

and add it to our nextJS example.

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

No branches or pull requests

1 participant