#What are all the different auth options?

8 messages · Page 1 of 1 (latest)

compact oyster
brazen perchBOT
#

Hi @compact oyster. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Based on the knowledge sources provided, I can answer your question about the different authentication options available for Convex.

Convex supports several authentication methods:

  1. Third-party authentication platforms:

  2. Convex Auth (currently in beta):
    This is a library for implementing authentication directly within your Convex backend. It supports:

    • Magic Links & OTPs (One-Time Passwords)
    • OAuth (sign in with Github, Google, Apple, etc.)
    • Passwords (including password reset flow and optional email verification)
  3. Service Authentication:
    For servers or third-party services that need to call Convex functions but may not represent specific users, you can implement public functions that check a shared secret.

Regarding your question about the purpose of the document at https://docs.convex.dev/auth/functions-auth, this document is likely intended for users who are using third-party authentication platforms or custom auth integrations. It explains how to access authentication information in Convex functions when using these methods.

The reference to "if you're using Convex Auth, see <some other doc>" is directing users of the Convex Auth library to a different set of documentation specific to that implementation, as it may have different methods for accessing auth information in functions.

To summarize, the main auth options available right now are:

  1. Third-party platforms (Clerk, Auth0)
  2. Custom OpenID Connect-compatible providers
  3. Convex Auth (beta)
  4. Service Authentication for server-to-server communication
#

Each of these options has its own setup and implementation details, which are covered in their respective documentation sections.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@compact oyster Kapa.ai is still learning and improving, please let me know how I did by reacting below.

compact oyster
#

@brazen perch convex auth only supports react apps at the moment, correct?

brazen perchBOT
#

Let me check the knowledge base for you again. One moment! :books:

#

Based on the knowledge sources provided, you are correct that Convex Auth currently only supports React applications. Here's the specific information I found:

Convex Auth states:

"Convex Auth currently supports client-side React web apps served from a CDN and React Native mobile apps."

Additionally, in the Auth FAQs, there's a question specifically addressing this:

"Can I use Convex Auth if I'm not using React?
We currently only have Convex Auth client libraries for React. Contributions to add a client implementation for another framework are welcome!"

This confirms that at the moment, Convex Auth is indeed limited to React applications. However, it's worth noting that the team seems open to expanding support for other frameworks in the future, especially if there's community interest and contribution.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: