Implement Square OAuth | Order Hoarder Sample App

Опубликовано: 11 Июль 2026
на канале: Square Developer
5,788
30

In this video, we'll demystify OAuth and show you how to implement it for your Square applications. We'll take a deep dive into an example app called Order Hoarder, a third-party order management system for Square Sellers, to walk you through the entire OAuth flow using PKCE. From setting up permissions, to constructing the authorization URL, to handling tokens and webhooks, you'll learn how to securely link your app to Square without headaches or security risks.

Chapters:
0:00 - Introduction to Square OAuth
0:27 - Overview of Order Hoarder App
2:08 - Constructing the Authorization URL
4:28 - Handling the Callback and Validating the OAuth Flow
6:42 - Storing and Encrypting Access Tokens in the Database
8:01 - Decrypting Tokens for API Requests
9:56 - Handling Square Deauthorization with Webhooks
12:31 - Order Hoarder Github Repo & Other Resources

🔗 Links:
Order Hoarder Github repo: https://github.com/Square-Developers/...
OAuth API docs: https://developer.squareup.com/docs/o...
Square Developer Discord:   / discord