Make your first request
This quickstart uses hosted auth to obtain a member token, then callsGET /v1/user with both required credentials.
Before you begin
InSettings > Developer Access in the TheFaithApp dashboard:
- Copy your client API key.
- Add the exact callback URL that will receive the member after sign-in.
http://localhost:3000/auth/callback. Production and local callback URLs must each be added explicitly.
1
Create a hosted sign-in URL
Generate a cryptographically random The response includes
state value and send it with your callback URL.auth_url. Open it in the system browser or a browser-based mobile auth session.2
Validate the callback
After sign-in, the member returns to your callback URL:Reject the callback if
state does not exactly match the value stored when sign-in began. Exchange code immediately; it is short-lived and single-use.3
Exchange the code
access_token in secure server-side storage, an HTTP-only secure session cookie, Keychain, or Keystore.4
Load the member
status: "Success" and the member record in data.JavaScript example
Next steps
- Building with Flutter? Follow the Flutter SDK Quickstart.
- Building with React Native or Expo? Follow the React Native SDK Quickstart.
- Read the Hosted Auth Guide before implementing production sign-in.
- Review Pagination and Errors for resilient response handling.
- Open an endpoint in the reference to see generated cURL, JavaScript, and Python examples.