ory / integrations

Apache License 2.0
19 stars 24 forks source link

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

Open gen1us2k opened 2 years ago

gen1us2k commented 2 years ago

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.