Django Axor
LINKS
  • Home
  • GitHub Repository
DOCS
  • Installing Django Axor
  • Setting up Django Axor
  • Endpoints
  • In-built Auth Pages

    • Sign In
    • Sign Out
    • Verify Email
    • Magic Link
    • Forgot Password
  • Available Models to Use
  • Current Authenticated User
  • Session vs App Token Authentication
  • Authentication Decorators
v1.7.1 Docs

Sign Out

The component is available at endpoint auth/signout/.

Query Parameters

To customize, you can provide following options query parameters with the endpoint:

  • redirect: URL to redirect after successful sign-out. Default is FRONTEND_URL that you provide in settings.
  • referrer: URL that if user decides to cancel sign-out, they can be redirected back to. Default is the FRONTEND_URL
    that you provide in settings.

Example

https://domain.abc/auth/signout?redirect=https://domain.local&referrer=https://domain.local/dashboard

Scenarios:

  • If user signs out successfully, they will be redirected to https://domain.local (redirect).
  • If user cancels sign-out, they will be redirected to https://domain.local/dashboard (referrer).
TABLE OF CONTENTS
  • Query Parameters
  • Example