alepha@docs:~/docs/reference/primitives$
cat $authFacebook.md | pretty
1 min read

#$authFacebook

#Import

typescript
1import { $authFacebook } from "alepha/server/auth";

#Overview

Already configured Facebook authentication primitive.

Uses OAuth2 to authenticate users via their Facebook accounts. Upon successful authentication, it links the Facebook account to a user session.

Environment Variables:

  • FACEBOOK_CLIENT_ID: The App ID obtained from the Meta Developer Console.
  • FACEBOOK_CLIENT_SECRET: The App Secret obtained from the Meta Developer Console.