'Next Auth with Keycloak (separated member database)

I made a website with Next-auth. My Next-Auth Provider is Keycloak(Openid-connect)

I want to make a separated member database to manage access permission

Example

Keycloak Server (Email) --> Next Auth Database Server (Transaction Email and Find Access Permission) --> Website Access Granted

How do I make Next Auth Database?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source