Mongo Adapter and API-Key plugin fail to find user

My application supports both Drizzle (postgres) and Mongo. When using the Drizzle adapter I have no issues with the API Keys but when using the Mongo adapter, it never finds the user with the error below. Note, that I am using a custom generateId function but again this has no issue when using Drizzle.
{"code":"THE_USER_ID_FROM_THE_API_KEY_IS_INVALID","message":"The user id from the API key is invalid."}
{"code":"THE_USER_ID_FROM_THE_API_KEY_IS_INVALID","message":"The user id from the API key is invalid."}
Any thoughts on this are appreciated.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?