Skip to content

Commit

Permalink
change "session access token" to "access token (session)" in sessions.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-carvalho committed Apr 15, 2024
1 parent 94b3c87 commit 2e3952f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/shopify_app/sessions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
Sessions are used to make contextual API calls for either a shop (offline session) or a user (online session). This gem has ownership of session persistence.

#### Table of contents

- [Sessions](#sessions)
- [Table of contents](#table-of-contents)
- [Sessions](#sessions-1)
- [Types of session access tokens](#types-of-session-access-tokens)
- [Session access token storage](#session-access-token-storage)
- [Types of access tokens (sessions)](#types-of-access-tokens-sessions)
- [Access token storage (session)](#access-token-storage-session)
- [Shop (offline) token storage](#shop-offline-token-storage)
- [User (online) token storage](#user-online-token-storage)
- [In-memory Session Storage for testing](#in-memory-session-storage-for-testing)
Expand All @@ -28,7 +27,7 @@ Sessions are used to make contextual API calls for either a shop (offline sessio
- [Migrating from `ShopifyApi::Auth::SessionStorage` to `ShopifyApp::SessionStorage`](#migrating-from-shopifyapiauthsessionstorage-to-shopifyappsessionstorage)

## Sessions
#### Types of session access tokens
#### Types of access tokens (sessions)
- **Shop** ([offline access](https://shopify.dev/docs/apps/auth/oauth/access-modes#offline-access))
- Access token is linked to the store
- Meant for long-term access to a store, where no user interaction is involved
Expand All @@ -39,7 +38,7 @@ Sessions are used to make contextual API calls for either a shop (offline sessio

⚠️ [Read more about Online vs. Offline access here](https://shopify.dev/apps/auth/oauth/access-modes).

#### Session access token storage
#### Access token storage (session)
##### Shop (offline) token storage
⚠️ All apps must have a shop session storage, if you started from the [Ruby App Template](https://github.com/Shopify/shopify-app-template-ruby), it's already configured to have a Shop model by default.

Expand Down Expand Up @@ -347,5 +346,5 @@ config.user_session_repository = {YOUR_USER_MODEL_CLASS}
- Sessions storage are now handled with [ShopifyApp::SessionRepository](https://github.com/Shopify/shopify_app/blob/main/lib/shopify_app/session/session_repository.rb)
- To migrate and specify your shop or user session storage method:
1. Remove `session_storage` configuration from `config/initializers/shopify_app.rb`
2. Follow ["Session Access Token Storage" instructions](#session-access-token-storage) to specify the storage repository for shop and user sessions.
2. Follow ["Access Token Storage" instructions](#access-token-storage-session) to specify the storage repository for shop and user sessions.
- [Customizing session storage](#customizing-session-storage-with-shopifyappsessionrepository)

0 comments on commit 2e3952f

Please sign in to comment.