Back to Wasp

Wasp File Structure Note

web/docs/auth/social-auth/_wasp-file-structure-note.md

0.24.0497 B
Original Source

Here's a skeleton of how our main.wasp.ts should look like after we're done:

ts
import { app, page, route } from "@wasp.sh/spec"
import { LoginPage } from "./src/pages/auth" with { type: "ref" }

// Configuring the social authentication
export default app({
  name: "myApp",
  wasp: { version: "{latestWaspVersion}" },
  title: "My App",
  auth: {
    // ...
  },
  spec: [
    // Defining routes and pages
    route("LoginRoute", "/login", page(LoginPage)),
  ],
})