AppMage

Developer Note: CoreBot Custom Auth Hooks

When calling AuthRpc.login or AuthRpc.signup, the framework invokes app-specific authentication and lifecycle hooks automatically. You can hook into this by implementing signupHooks or loginHooks inside your application configuration:

// Example hook implementation
export default {
    tenancy: {
        auth: {
            signup: {
                onAfterSignup: async (user, context) => {
                    // Custom post-signup logic (e.g. provision a default project)
                }
            }
        }
    }
};