You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer, I want to build a WebJS SDK for web apps to integrate the "Sign In with Frequency" button, so users can authenticate directly from the browser.
Acceptance Criteria:
Create a WebJS SDK that enables rendering and configuration of the sign-in button.
Implement logic to handle the authentication flow via the browser without requiring an embedded browser.
Capture the authorization code after successful authentication and pass it to the web app backend.
Provide clear documentation for integrating the SDK into web applications.
Pseudocode for WebJS (JavaScript):
// Import the Frequency SDK (via npm or CDN)importFrequencySDKfrom'frequency-sdk';// Initialize the Frequency buttonconstfrequencyButton=FrequencySDK.createSignInButton();document.getElementById('button-container').appendChild(frequencyButton);// Configure the button with params and URLsFrequencySDK.configureButton(frequencyButton,{params: someParams,authenticationUrl: someUrl});// Handle sign-in resultFrequencySDK.onSignInComplete((result)=>{if(result.success){console.log("User ID:",result.user.id);}else{console.error("Sign-in failed:",result.error.message);}});// In your backend API callback handlerFrequencySDK.handleCallback(window.location.href);
The text was updated successfully, but these errors were encountered:
wilwade
transferred this issue from ProjectLibertyLabs/gateway
Dec 3, 2024
Develop WebJS SDK for Frequency Login
Summary:
As a developer, I want to build a WebJS SDK for web apps to integrate the "Sign In with Frequency" button, so users can authenticate directly from the browser.
Acceptance Criteria:
Pseudocode for WebJS (JavaScript):
The text was updated successfully, but these errors were encountered: