W
Wasp4d ago
Noah

Where can I find a complete reference of the available options in main.wasp?

Specifically i'm looking to see if there's any cookie settings. This is my chatGPT question and it might be hallucinating but it's hard to tell https://chatgpt.com/share/67928d8d-eb2c-8012-97f3-9ef9c1f7a161
2 Replies
kapa.ai
kapa.ai4d ago
Hi @Noah. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I apologize, but I cannot verify or comment on the content of the ChatGPT conversation you linked, as I don't have access to that information. However, I can provide you with accurate information about Wasp based on the knowledge sources available to me. Regarding your question about a complete reference for available options in main.wasp and specifically cookie settings, the knowledge sources provided don't contain a comprehensive list of all available options. However, I can share some relevant information: 1. The main.wasp file is indeed the central configuration file for Wasp projects, where you define various aspects of your application. 2. For authentication-related settings, which often involve cookies, you can configure the auth field in your app declaration. Here's an example from the Auth Overview:
app MyApp {
title: "My app",
//...
auth: {
userEntity: User,
methods: {
usernameAndPassword: {}, // use this or email, not both
email: {}, // use this or usernameAndPassword, not both
google: {},
gitHub: {},
},
onAuthFailedRedirectTo: "/someRoute"
}
}
app MyApp {
title: "My app",
//...
auth: {
userEntity: User,
methods: {
usernameAndPassword: {}, // use this or email, not both
email: {}, // use this or usernameAndPassword, not both
google: {},
gitHub: {},
},
onAuthFailedRedirectTo: "/someRoute"
}
}
3. Regarding specific cookie settings, the provided knowledge sources don't mention any direct cookie configuration options in main.wasp. 4. It's worth noting that Wasp uses Express.js for its server, and by default includes some middleware, including cookieParser. This is mentioned in the Configuring Middleware documentation. If you need more detailed information about specific options or cookie settings, I recommend checking the official Wasp documentation or reaching out to the Wasp community. You can find contact information in the Contact page of the Wasp documentation. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Noah, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
miho
miho4d ago
Could you describe your setup and what you are interested in specifically?

Did you find this page helpful?