Skip to content
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/routes/docs/tutorials/react/step-4/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Create a new file `src/lib/context/user.jsx` and add the following code to it.

```js
import { createContext, useContext, useEffect, useState } from "react";
import { account } from "../appwrite";
import { account, ID } from "../appwrite";

const UserContext = createContext();

Expand All @@ -36,7 +36,7 @@ export function UserProvider(props) {
}

async function register(email, password) {
await account.create(email, password);
await account.create(ID.unique(), email, password);
await login(email, password);
}

Expand Down