
Hello, I am modifying the stripe subscriptions template to include the login page, I always run into AppwriteException: User (role: guests) missing scope (account)
even though visiting the domain/v1/account shows the json of the active session.
My full code of the index.html is bellow (everything else is unchanged).
(first domain (ssteh.beyond...) is for sever hosting, and the second one (premium.ssteh.com) is domain of the function (hosted on the same server)
Also already registered a web app in the console

You're not logged in. Browsing to that url is probably using your console cookie.

yea i know i am not so i show the user a login page, which seems to not work..

am I logging in the user correctly..?

Sorry I don't understand the problem

if the user is not logged in they get shown a login page, to enter email and password, but after clicking login I get redirected back to the login page, still with the error above

What are all the network calls on the page from the browser dev tools?


this?

red one:

Ok...you're not logged in so you see this error. That's expected isn't it?

yes

Ok and...

thats how the function works (subscription with stripe template)

What?


You said it's behaving as expected so what is the problem?

problem is when I try to log in (enter credentials) it returns be back to the login page insted of the /subscribe, because it cant gets the account info via the account.get()

I am asking If i am doing the login part wrong or something else?

Cant get login on web or get account

Please share all the network logs

I did, everything above is what I got in the console

There is no log in call

the console.log you mean?
Recommended threads
- Project receiving 403 Forbidden on /v1/a...
Project ID: 68521bce002aaebde8d0 Endpoint: https://fra.cloud.appwrite.io/v1 Problem: I am receiving a 403 Forbidden error with an empty response body when try...
- Is there a way I run all functions local...
Thanks for the great software! 🙂 One question, the command `appwrite run functions` always requires me to select a function to run without an "All" option. I ...
- Bulk API upsert or Create documents func...
Hi , I keep getting “databases.upsertDocuments” or “createDocuments” function is not a valid appwrite function error . Following is a simple node.js code (modi...
