Playground
Try out @warpy-auth-sdk/core with interactive examples
Code Editor
Select an example and run it to see the results
import { authenticate } from "@warpy-auth-sdk/core";
import { google } from "@warpy-auth-sdk/core";
const provider = google({
clientId: process.env.GOOGLE_CLIENT_ID!,
clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
redirectUri: "http://localhost:3000/callback",
});
// Start OAuth flow
const result = await authenticate({
provider,
secret: process.env.AUTH_SECRET!,
request: req,
});
console.log(result.user);Output
See the results of your code execution
> Click "Run Example" to execute the code
> Results will appear here...
Try These Examples