🌥️
Patient Cloud
  • README
  • Auth
    • Google Identity
    • Identity Providers
    • Nest Auth Service
  • Microservices
    • NestJS Overview
  • Security
    • API Security
    • Trails
  • Client App Security
  • Development
    • Sentry logging
  • Build
    • Local Build
    • Using Cloud Build
  • Social login
    • Social login
  • NHS
    • NHS Login
  • GraphQL
    • Playground
  • Testing
    • Unit Tests
    • Integration Tests
    • End to End tests
Powered by GitBook
On this page
  • Facebook
  • Google
  • Twitter
  • NHS Login

Was this helpful?

  1. Auth

Identity Providers

Facebook

JWT access token can be obtained by sending a POST payload to /auth/login. Authenticate user on Facebook and get an auth token. Use the token as a token payload.

{
  token: "FACEBOOK_AUTH_TOKEN",
  provider: "FACEBOOK"
}

Google

Authenticate user on Google and get an auth token. Use the token as a token payload.

{
  token: "GOOGLE_AUTH_TOKEN",
  provider: "GOOGLE"
}

Twitter

Authenticate user on Twitter and get an auth token and a secret token. Use the token as a token payload and secret token as tokenSecret

{
  token: "TWITTER_TOKEN",
  tokenSecret: "TWITTER_SECRET_TOKEN",
  provider: "TWITTER"
}

NHS Login

Redirect user to /auth/nhs-login

PreviousGoogle IdentityNextNest Auth Service

Last updated 4 years ago

Was this helpful?