import { defineAuthenticationProvider } from "@valon-technologies/gestalt";
export const authentication = defineAuthenticationProvider({
displayName: "Example Authentication",
async beginLogin(request) {
return {
authorizationUrl: new URL("/login", request.callbackUrl).toString(),
};
},
async completeLogin() {
return { subject: "usr_123", email: "user@example.com" };
},
});
Creates an authentication provider with the standard Gestalt runtime contract.