Skip to content

Commit 5b3d301

Browse files
authored
Merge pull request Shopify#172 from maruffahmed/main
Update spelling on customsessions.md
2 parents 0337d4c + a125fb0 commit 5b3d301

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/usage/customsessions.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This library comes with two session management options: `MemorySessionStorage` a
77
When you're ready to deploy your app and run it in production, you'll need to set up a `CustomSessionStorage`, which you can then use in initializing your `Shopify.Context`. The `CustomSessionStorage` class expects to be initialized with three callbacks that link to your chosen storage solution and map to the `storeSession`, `loadSession`, and `deleteSession` methods on the class.
88

99
## Callback methods
10-
10+
1111
- All of the callbacks used to create a new instance of `CustomSessionStorage` should be `async` functions and return a `Promise` that resolves to a specified type, as outlined below.
1212

1313
| Method | Arg type | Return type | Notes |
@@ -70,7 +70,7 @@ class RedisStore {
7070
storeCallback = async (session: Session) => {
7171
try {
7272
// Inside our try, we use the `setAsync` method to save our session.
73-
// This method returns a boolean (true is successful, false if not)
73+
// This method returns a boolean (true if successful, false if not)
7474
return await this.setAsync(session.id, JSON.stringify(session));
7575
} catch (err) {
7676
// throw errors, and handle them gracefully in your application
@@ -107,7 +107,7 @@ class RedisStore {
107107
deleteCallback = async (id: string) => {
108108
try {
109109
// Inside our try, we use the `delAsync` method to delete our session.
110-
// This method returns a boolean (true is successful, false if not)
110+
// This method returns a boolean (true if successful, false if not)
111111
return await this.delAsync(id);
112112
} catch (err) {
113113
throw new Error(err);

0 commit comments

Comments
 (0)