
what url does it mean in the docs of verification with email?
import { Client, Account } from "appwrite";
const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
const account = new Account(client);
const result = await account.createVerification( 'https://example.com' // url );
console.log(response);

(session?: string)

I recommend going with the setting a cookie route and use that cookie in each request, like this:

do you mean this? (the thing i replied too) or you still typing

Yes

You should first look over this. You are registering and logging in at the same time, and after logging in you are (again) redirecting to the login page. Makes no sense to do this, seems like an infinite loop.
If you wanna do it your way, you should keep watching Dennis's video. Seems like you stopped halfway as you made some weird path to what you are now with logging in/registering

hey @faye I checked the jwt secret that was created when logged in or in sign up, on jwt.io, it does not have any payload, it just has $id and secret in header

maybee im not retreving the session correctly?

register has no payload

afaik

and when i login too


how do we fix it? Is it my problem or is it appwrites. I watched the video fully, he does not do register, but login code is the same as his.

here is a decode token i got after logging in with his code { "id": "the id", "secret": "the secret" } no payload

How are you creating this JWT? And what are you using it for?

it creates a session with the logged in user, (name email, password)

I’m not really clear on what you’re trying to do here

If you’re just trying to do email verification, once you’ve signed in, just call the account.createVerification()
method from the client side.

yep, thats the plan, but i get the error app.66bfddd300363a4e6bb0@service.cloud.appwrite.io (role: applications) missing scope (account)
401

when i add it

That means that you’re doing this from the Server SDK, not the Client SDK

Essentially, you’re not signed in as a user

but why does it still display the information of the user as if it was signed in, like the name when i haven't inputted it, but it was still retrieved, and redirected me to the protected page

what should I add, to avoid this error, and receive the email in my inbox to verify

Well, what are you displaying and how are you displaying it?
Recommended threads
- Need help setting up this error is showi...
You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy. If you're the app developer, register the redirect URI in the Google Cl...
- Appwrite stopped working, I can't authen...
I'm having an issue with Appwrite. It was working fine just a while ago, but suddenly it stopped working for me and can't authenticate accounts. I even went bac...
- Set succes/failure url in console
Hi guys, I want to set up a succes and failure url for my OAuth2 provider Google. But I don't see any options for this? Is it not possible to do so? Beside th...
