Debian Codegraph @

allauth/socialaccount/providers/facebook/constants.py

raw
1 from django.conf import settings
2
3
4 PROVIDER_ID = "facebook"
5 GRAPH_API_VERSION = (
6 getattr(settings, "SOCIALACCOUNT_PROVIDERS", {})
7 .get("facebook", {})
8 .get("VERSION", "v19.0")
9 )
10 GRAPH_API_URL = (
11 getattr(settings, "SOCIALACCOUNT_PROVIDERS", {})
12 .get("facebook", {})
13 .get("GRAPH_API_URL", f"https://graph.facebook.com/{GRAPH_API_VERSION}")
14 )
15
16 NONCE_SESSION_KEY = "allauth_facebook_nonce"
17 NONCE_LENGTH = 32