Closed leodevbro closed 1 year ago
If you're using only one provider, you can use subject
. The left part in tokenIdentifier
is needed to distinguish keys from two different providers, which might issue the same key:
Provider A, Key X
Provider B, Key X
Here: https://docs.convex.dev/auth/database-auth
The docs recommend using
identity.tokenIdentifier
to store the external auth id into our DB.But it looks like this:
Is the left side really needed?
Why don't we do simply this?
I think the
user_2UqFb5XFIur7dYbfl7GuCGoUuRH
is totally unique and enough, right?