
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
- Web SDK chunk upload to Storage without ...
As discussed in this older thread (https://discord.com/channels/564160730845151244/1216821517749321808), the Read permission for Any needs to be enabled in orde...
- Storage getFilePreview for GIF file retu...
Used to work in 1.6.x but with 1.7.4 upgrade it seems to be broken.
- Issue while signing up.
Hey, I’m running into an issue right after the setup. I followed the setup instructions and ran `docker compose up -d`, and while the local server seems to be r...
