Closed aybanda closed 1 month ago
This PR introduces GitHub OAuth authentication for the UbiquityOS Plugin Installer by creating a new server.js file.
Created server.js: Set up an Express server with Passport.js for handling GitHub authentication.
Integrated GitHub Strategy: Implemented Passport.js with the GitHub strategy to allow users to log in securely.
Session Management: Added session management to maintain user login state across requests.
Protected Route: Developed a protected route (/update-config) that allows authenticated users to update the configuration.
Implemented error handling for authentication failures
Feel free to modify any part of this description to better fit your style or to add any additional details you think are necessary!
We use typescript and link to the issue it solves this isn't going to work
Description:
This PR introduces GitHub OAuth authentication for the UbiquityOS Plugin Installer by creating a new server.js file.
Key changes include:
Created server.js: Set up an Express server with Passport.js for handling GitHub authentication.
Integrated GitHub Strategy: Implemented Passport.js with the GitHub strategy to allow users to log in securely.
Session Management: Added session management to maintain user login state across requests.
Protected Route: Developed a protected route (/update-config) that allows authenticated users to update the configuration.
Implemented error handling for authentication failures
Feel free to modify any part of this description to better fit your style or to add any additional details you think are necessary!