
for whole code view https://codeshare.io/5XYBMa
//app/store/auth.ts snippet for oauth2
async signInWithGoogle() {
const successUrl = 'http://localhost:3001/success';
const failureUrl = 'http://localhost:3001/login?error=oauth_failed';
try {
await account.createOAuth2Session(
OAuthProvider.Google,
successUrl,
failureUrl,
['profile', 'email'],);
async handleOAuthCallback() {
try {
const session = await account.getSession("current");
const user = await account.get<any>();
const { jwt } = await account.createJWT();
gettting errror result: Object { success: false, error: AppwriteException } ​ error: AppwriteException: User (role: guests) missing scope (account) ​ success: false
Recommended threads
- Custom Domain TLS Certificate Not Applie...
Added a custom domain, but gives me an error ``` Requested host does not match any Subject Alternative Names (SANs) on TLS certificate [3d45f294eb3f84a3350132a2...
- 401 - Project is not accessible in this ...
This is on the app write console https://screen.aryanwadhera.tech/7YTVhLTf
- null
