stack/examples/js-example/index.ts
2025-02-08 02:31:03 +01:00

14 lines
262 B
TypeScript

import { StackServerApp } from "@stackframe/js";
const stackServerApp = new StackServerApp({
tokenStore: 'memory',
});
stackServerApp.listUsers().then((users) => {
console.log(users);
});
stackServerApp.getUser().then((user) => {
console.log(user);
});