(fix): better explentations
This commit is contained in:
parent
a8fabbf0a0
commit
0e87a9df8b
4 changed files with 20 additions and 3 deletions
|
|
@ -39,8 +39,7 @@ import z from "zod";
|
|||
import { TAuthClient } from "@tensamin/tauth-sdk";
|
||||
|
||||
const client = new TAuthClient({
|
||||
frontendUrl: "http://localhost:3000",
|
||||
identifier: "your-app-identifier",
|
||||
identifier: "my.cool.app",
|
||||
privateKey: "<APP_PRIVATE_KEY_BASE64>",
|
||||
publicKey: "<APP_PUBLIC_KEY_BASE64>",
|
||||
saveSession: async (userId, sessionId) => {
|
||||
|
|
@ -48,7 +47,7 @@ const client = new TAuthClient({
|
|||
// Treat the session id like a password!
|
||||
console.log("Save session", { userId, sessionId });
|
||||
},
|
||||
redirectUrl: "http://localhost:7878/callback",
|
||||
redirectUrl: "https://my.cool.app/callback", // This should be a public link proxying http://localhost:7878/callback
|
||||
appData: z.object({
|
||||
my: z.string(),
|
||||
cool: z.string(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue