Skip to content

Commit

Permalink
chore(appwrite): update auth provider login method (#409)
Browse files Browse the repository at this point in the history
* chore(appwrite): update auth provider login method

* chore(appwrite): update to next major
  • Loading branch information
aliemir authored Aug 6, 2024
1 parent 4b9b713 commit 7d2e4b7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion refine-nextjs/plugins/data-provider-appwrite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"@refinedev/appwrite": "^6.4.6",
"@refinedev/appwrite": "^7.0.0",
"uuid": "^9.0.0",
"js-cookie": "^3.0.5",
"node-appwrite": "^13.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const authProviderClient: AuthProvider = {
Cookies.remove(APPWRITE_JWT_KEY, { path: "/" });
appwriteClient.setJWT("");

await appwriteAccount.createEmailSession(email, password);
await appwriteAccount.createEmailPasswordSession(email, password);
const { jwt } = await appwriteAccount.createJWT();
appwriteClient.setJWT(jwt);

Expand Down
2 changes: 1 addition & 1 deletion refine-vite/plugins/data-provider-appwrite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"@refinedev/appwrite": "^6.4.6",
"@refinedev/appwrite": "^7.0.0",
"uuid": "^9.0.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { account } from "./utility";
export const authProvider: AuthProvider = {
login: async ({ email, password }) => {
try {
await account.createEmailSession(email, password);
await account.createEmailPasswordSession(email, password);
return {
success: true,
redirectTo: "/",
Expand Down

0 comments on commit 7d2e4b7

Please sign in to comment.