@soba-so/react 0.0.20 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -26,7 +26,7 @@ ephemeral keys work.
26
26
  // app/api/soba/session/route.ts
27
27
  export async function POST() {
28
28
  const session = await auth() // your auth, your rules
29
- const res = await fetch("https://www.soba.so/v1/end_users/session", {
29
+ const res = await fetch("https://soba.so/v1/end_users/session", {
30
30
  method: "POST",
31
31
  headers: {
32
32
  authorization: `Bearer ${process.env.SOBA_KEY}`,
@@ -12,7 +12,7 @@ export interface SobaProviderProps {
12
12
  * expects `{ session, expires_in }` back. Four lines on your server:
13
13
  *
14
14
  * ```ts
15
- * const res = await fetch("https://www.soba.so/v1/end_users/session", {
15
+ * const res = await fetch("https://soba.so/v1/end_users/session", {
16
16
  * method: "POST",
17
17
  * headers: { authorization: `Bearer ${process.env.SOBA_KEY}` },
18
18
  * body: JSON.stringify({ user: sobaUserId(session.user.username) }),