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
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...