import { ENTRA_APP_ID, ENTRA_APP_SECRET } from "astro:env/server";
import { betterAuth } from "better-auth";
export const auth = betterAuth({
socialProviders: {
microsoft: {
clientId: ENTRA_APP_ID,
clientSecret: ENTRA_APP_SECRET,
tenantId: "organizations",
scope: [
"openid",
"profile",
"offline_access",
"Group.Read.All",
"GroupMember.Read.All",
"Sites.Read.All",
"User.Read",
"User.ReadBasic.All",
],
},
},
});
import { ENTRA_APP_ID, ENTRA_APP_SECRET } from "astro:env/server";
import { betterAuth } from "better-auth";
export const auth = betterAuth({
socialProviders: {
microsoft: {
clientId: ENTRA_APP_ID,
clientSecret: ENTRA_APP_SECRET,
tenantId: "organizations",
scope: [
"openid",
"profile",
"offline_access",
"Group.Read.All",
"GroupMember.Read.All",
"Sites.Read.All",
"User.Read",
"User.ReadBasic.All",
],
},
},
});