1
0
Fork 0
mirror of synced 2024-09-19 10:59:50 +12:00
appwrite/docs/examples/1.1.x/client-web/examples/account/update-session.md
2022-11-16 18:35:44 -05:00

436 B

import { Client, Account } from "packageName";

const client = new Client();

const account = new Account(client);

client .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ;

const promise = account.updateSession('[SESSION_ID]');

promise.then(function (response) { console.log(response); // Success }, function (error) { console.log(error); // Failure });