![]() ![]() My _app.js: import = serverRuntimeConfig ĪddItemToBlacklist.js from API Folder: import client from '././database/connection'Ĭlient.rpush(). Thanks for answers and sorry when I messed up things, I am new in next and I wanna learn :) Is there a better/easier way to prevent connecting many redis clients to my db?.Once you’ve been redirected to the Overview page, select the Scan QR Code option to enable your camera mode for the QR scan. Then open the User Settings menu by pressing your profile icon in the bottom left corner. just curious if this use-case is possible. Edit: as i asked, i understand the potential risk of such a possibility. I wanted to paste the redis property through the SessionProvider but I got the error "Module not found: dns" every time when I hadn't previously queried whether typeof window was undefined when creating the redis client. In order to use QR Code Login, start by logging into your Discord account on the mobile device. Im wondering if I were to host the code, is it possible to generate a web driver on their local machine The use-case being if they needed to type login info (as i currently have this availability but its all automated). When users attempt to log in, they are shown a prominent option for passwordless login, by capturing a QR. On my IDE console/serversided, it wasn't undefined. What is it This is a solution found in Discord. Copy these values into your config.json file youll need them later. Take note of the client id and client secret fields. Open your Discord applications, create or select an application, and head over to the 'OAuth2' page. But there I had the problem, that the redis property was undefined on the browsers console/clientsided. Now that you have a web server up and running, its time to get some information from Discord. quit() after my requests and I tried to add redis into the SessionProvider. I created a next app for a discord web-dashboard and use redis as my database.Įvery time I make an axios request to one of my docs in the api folder, where a redis client is needed, a new redis client connects to my database.
0 Comments
Leave a Reply. |