The main concern I have is security.
I want to create an application using the Twitch API in C#. I've managed to get the OAuth page embedded into my application, and I plan on setting up a small Node.JS app on Glitch to store the client secret and handle the generation of the ID and User Access tokens.
My question is - once I've gotten the ID and User Access tokens, what is the best way to store them? I initially thought of storing them locally, but I realised that that would cause many security concerns among users, even if I encrypted the codes.
I am currently using the OIDC Authorisation Code procedure.
I need to store the tokens such that when the user restarts the application, they can be preserved and can also be used to generate refresh tokens etc.