Join our Newsletter — 33% off our NHI Course
Home› Guides› Square Security Guide: Passcodes, Device Codes, Sign-in and…
Guide Fraud Prevention

Square Security Guide: Passcodes, Device Codes, Sign-in and Access Tokens

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 19 November 2026 15 min read
On this page

Securing a Square account means controlling three kinds of access: the people who sign in to the Dashboard and point of sale, the devices paired to each location, and the access tokens that let software act on the business's behalf. Small and mid-sized businesses often think of their point of sale as a till, but it is really an identity system. Owners, managers and staff each need different rights. Counter tablets, kitchen displays and kiosks sign in without a person's password. Accounting tools, ecommerce plugins and custom scripts reach in through the API with tokens that can read orders, customers and payments. Each of those paths is a way in, and fraud and data loss usually travel through whichever one was set up in a hurry and never revisited.

This guide covers the controls Square documents for each layer: two-step verification for owners and team members, point of sale passcodes and timeouts, device codes and device management, and personal access tokens and OAuth tokens for developers and integrations. It is aimed at the owner or operations lead who runs the account, and at whoever builds or approves integrations. It does not cover payment card industry compliance obligations; for those, rely on your acquirer and the official standard rather than on a general guide.

This is an independent guide from NHI Mgmt Group, based on Square's public documentation as of November 2026. It is not sponsored or reviewed by Square. Product features change, so confirm settings against Square's current documentation.

Key takeaways

  • Turn on two-step verification for your own sign-in and enforce it for team members under the Business two-step verification setting.
  • Use personal passcodes rather than a single shared team passcode, so that sales, time and actions can be traced to an individual.
  • Set a passcode timeout so an unattended point of sale locks itself.
  • Sign devices in with device codes instead of sharing the owner's email and password, and reset or remove codes when a device is lost, replaced or retired.
  • A Square personal access token can perform any activity on any resource in your account. Keep it out of code and out of the hands of third parties.
  • Square OAuth access tokens expire after 30 days, and Square recommends renewing them every 7 days or less. Request only the permissions an integration actually uses.
  • Review connected applications regularly and revoke those you no longer use.

Three layers of access to protect

It helps to split a Square account into three layers, because each is controlled in a different place and goes wrong in a different way.

LayerWho or what uses itMain Square controls
Account sign-inOwner, managers and team members using the Dashboard or signing in with email and passwordTwo-step verification, business two-step verification for team members, account and settings permission
Point of saleStaff working at a shared counter deviceOwner, team and personal passcodes; Require passcode options; passcode timeout
Devices and integrationsCounter devices, kitchen displays, kiosks, apps and scriptsDevice codes, device management, personal access tokens, OAuth access and refresh tokens, connected application revocation

The third layer is where non-human identities live. A paired kiosk and an accounting connector are not people, but both hold credentials that grant access to your business. They need owners, inventories and an end-of-life process just like staff accounts do.

Two-step verification for owners and team members

Square's help centre describes two-step verification methods including SMS text messages to a mobile number and an authentication app, with only one authentication app usable at a time. After setting up a first method you can add a backup, such as a second phone number or an authentication app. Where you have the choice, prefer the authentication app over SMS for the account owner, in line with the guidance on authenticator strength in NIST SP 800-63B-4.

Turning it on for yourself

Square documents the path as Settings, Account & Settings, Personal Information, Sign in & security. Under Two-step verification, choose Enable to set it up, or Manage two-step verification to add or remove numbers.

Enforcing it for the team

Sellers with the account and settings permission can turn on Two-step verification for team members under Business two-step verification, at Settings, Account & Settings, My business, Security. Square explains that team members then set up verification on their own devices, and that each sign-in requires their passcode and a verification code. Existing members receive an email with setup instructions and must complete setup at their next sign-in if they have not already; new team members see it during account creation. Note that to turn off your own two-step verification, Square requires the team setting to be turned off first, which is a useful safeguard against an owner weakening their own account without noticing the team impact.

Remembered devices

Square offers Remember this device for 90 days, which skips the code prompt on that device until the period ends. That is reasonable on a personal laptop kept at home. Do not use it on shared or front-of-house devices.

If you cannot receive a code, Square's guidance is to contact Square Support by phone. Make sure the owner's backup method is set up before it is needed, so recovery does not depend on a single phone.

Point of sale passcodes

Counter devices are shared, so the identity question at the point of sale is who is standing at the device right now. Square documents three kinds of passcode, and the difference between them matters for both fraud prevention and investigation.

Passcode typeWhat Square documents
Owner passcodeHighest permissions, with full access to sensitive data and point of sale control.
Team passcodeOne shared passcode for team permissions. It does not track time, sales or activity by individual.
Personal passcodeA unique 4-digit code for each team member, with permissions for their role, so owners can track sales, time and actions by person.

Only account owners can require passcodes at the point of sale and edit the owner passcode. Square lists prerequisites: at least one team member assigned to a permission set, and team members with shared points of sale set as an access point in their permissions.

Prefer personal passcodes

A shared team passcode is convenient, but it removes accountability. If a refund is issued fraudulently, or a discount is applied that should not have been, a shared passcode tells you only that someone on the team did it. Personal passcodes tie each action to a person, which deters misuse and makes it possible to investigate. In NHI Mgmt Group's view, a shared team passcode should be the exception, used only where the permissions behind it are low-risk.

Choose which tasks need a passcode

In the point of sale app, Square documents More, Settings, Security, where you toggle on Passcodes and optionally Team passcode, and then use Require passcode to choose which tasks need a passcode. Concentrate on the tasks that move money or expose data. Treat the owner passcode as a highly privileged secret: do not share it with staff, and change it if you suspect it has been seen. Square documents editing it from the owner's team member record under Permissions, Edit, Credentials, or from Sign in & security under Personal POS Passcode.

Set a timeout

The passcode timeout sets how long the point of sale stays unlocked after the last interaction before a passcode is required again. Square documents setting it in the app under More, Security, Require passcode, After timeout, or in the Dashboard under Settings, Device Management, Modes, then the location's Settings, Security, Timeout. A short timeout matters most on counters where several people work and devices are left unattended during busy periods.

Team permissions and least privilege

Passcodes decide who is at the device; permissions decide what they can do. Square's documentation for both passcodes and devices relies on the team permissions page in the Dashboard and on permission sets assigned to team members. The account and settings permission is especially powerful: Square documents it as the permission that allows enforcing team two-step verification and creating, editing and deleting devices.

Practical principles for permissions:

  • Give the account and settings permission to as few people as possible, ideally the owner and one named deputy.
  • Build permission sets around roles, such as cashier, supervisor and manager, rather than around individuals.
  • Keep refunds, cancellations and access to customer information with supervisors and managers rather than with every cashier.
  • Review team members at least quarterly, and remove access on the day someone leaves.
  • Check that leavers' personal passcodes stop working, and change any shared team passcode they knew.

Square's documentation that NHI Mgmt Group reviewed does not set out the full list of individual permissions, so check the permissions available in your own Dashboard and region before designing sets.

Device codes and device management

Device codes are how Square lets a device sign in without an email address and password. Square describes them as pairing point of sale devices, phones, tablets and Square hardware to a business location, and as letting employees sign in without sharing account passwords. This is the right pattern: a device code is a credential for a device, separate from any person's login, and it can be reset or removed without disrupting anyone else.

Creating codes

Only account owners and team members with the account and settings permission can create, edit and delete devices. Square documents the path Settings, Device Management, Device codes, Create, where you choose the device type (Point of sale, Kitchen display system or Kiosk), the location, an optional mode, a name and an optional owner passcode. A new code that is not used within 48 hours expires and must be reset, which limits the risk of an unused code lingering. Name every code so that the device and location are obvious, for example by site and till number, so that a list of codes doubles as an inventory.

Resetting and removing

Square documents three actions on an existing code:

  • Reset generates a new code and signs out the paired device. Use this if a code may have been seen by someone who should not have it, or if a device is reassigned.
  • Rename keeps the inventory accurate.
  • Remove, using Delete, retires the code entirely.

Separately, under Settings, Device Management, Devices, you can search and filter devices by status, location, device type, installed apps and mode, and see details including connectivity and installed apps. Forget removes a device and its connected peripherals. Square notes that devices sync with Square periodically to apply Dashboard changes, so allow for a short delay after a change.

A device lifecycle

  1. Create one code per device, named for its location and purpose.
  2. Pair it promptly, before the 48 hour expiry.
  3. Use modes, which Square recommends with device codes, to keep each device's behaviour consistent.
  4. Review the Devices list monthly for unknown, offline or unexpected entries.
  5. When a device is lost, stolen, replaced or retired, reset or delete its code and forget the device.

Developer access tokens

Integrations are the part of a Square account most likely to be forgotten, and the part with the broadest reach. Square's developer documentation describes two kinds of access token.

Personal access tokens

A personal access token gives unrestricted access to resources in a single Square account; Square says it can be used to perform any activity on any resource in your own account. Each application has a separate production personal access token and a Sandbox access token on the Developer Console Credentials page. Square suggests personal access tokens for custom integrations that only access your own account, and notes that the Webhook Subscriptions API and Events API require the application's personal access token.

Because a personal access token is effectively full control of the account, handle it as the most sensitive credential the business owns. Square's guidance is not to hardcode access tokens in code, to use a secrets manager or framework-specific encrypted credentials, not to share personal access tokens, and to redact the Authorization header before posting cURL snippets to support or forums. Never give a personal access token to an outside developer or vendor; if they need access, they should use OAuth.

OAuth access tokens

OAuth tokens give scoped access on behalf of the account owner, limited to the permissions the seller grants. Square recommends OAuth for multi-tenant applications serving multiple sellers. Its OAuth best practices page sets out the lifecycle:

  • Access tokens expire after 30 days.
  • Applications should renew access tokens automatically every 7 days or less, even when the seller is not using the app.
  • When an application reads a token from its database, it should check whether the token is older than 8 days and raise an alert if so, so that renewal failures are noticed.
  • PKCE refresh tokens are single-use and expire after 90 days.

Square advises using the code flow for confidential clients on secure back-end servers, and PKCE for mobile apps and public clients such as single-page apps, and never storing the application secret, access token or refresh token in a mobile app or public client. Token storage should be encrypted in a secure database or keychain, with encryption keys kept away from anyone who does not need them and never in source control. The application secret should not be hardcoded.

Scopes

Square advises requesting the least-privileged permissions, and only for APIs the application actually calls. It also notes that you cannot later determine the requested permissions from the authorisation code or the token, so record what you request; RetrieveTokenStatus shows the permissions attached to an access token. When an integration asks you, as a seller, to approve permissions, check that each one makes sense for what the tool does.

Reviewing and revoking connected applications

Square documents that sellers can disconnect an application in My Applications in the Square Dashboard, which calls RevokeToken to revoke all of that seller's tokens for the app. Applications can also call RevokeToken themselves to revoke one token or all tokens for a seller. Square suggests that apps confirm a token is still valid by calling ListLocations, show sellers accurate token status, and handle ACCESS_TOKEN_EXPIRED, ACCESS_TOKEN_REVOKED and UNAUTHORIZED errors clearly.

For the business, this translates into a simple routine:

  • List every connected application and every custom integration, with an internal owner for each.
  • Disconnect anything you no longer use, including trials and tools from previous providers.
  • If a staff member or contractor who set up an integration leaves, review the integration and, for custom code, rotate any personal access token they could have seen.
  • If a token may have leaked, revoke it straight away and issue a new one, then review recent account activity.

The general model is described in IETF RFC 7009 OAuth 2.0 Token Revocation and RFC 9700 Best Current Practice for OAuth 2.0 Security.

Common failure patterns

  • Owner login on the counter. Devices are signed in with the owner's email and password instead of device codes, so anyone at the till has owner-level reach.
  • One passcode for everyone. A shared team passcode is used for all staff, so fraudulent refunds cannot be traced to a person.
  • No timeout. The point of sale stays unlocked indefinitely between sales.
  • Too many administrators. The account and settings permission is handed out widely, so many people can add devices or change security settings.
  • Stale devices. Lost or replaced tablets remain paired because nobody reset or removed their codes.
  • Personal access token shared with a developer. A contractor receives a token with full account access, and it stays in their code after the job ends.
  • Broad OAuth permissions. An integration requests access to everything, and nobody records or reviews what was granted.
  • Tokens in public clients. A mobile or browser app embeds the application secret or a long-lived token.

Practitioner checklist

  • Enable two-step verification for the owner, preferably with an authentication app, and add a backup method.
  • Turn on Two-step verification for team members under Business two-step verification.
  • Require passcodes at the point of sale, use personal passcodes, and set a passcode timeout.
  • Limit the account and settings permission to a small, named group and review permission sets quarterly.
  • Sign every device in with its own named device code, and reset or delete codes for lost or retired devices.
  • Review the Devices list monthly for unknown or unexpected entries.
  • Store personal access tokens, application secrets and OAuth tokens in a secrets manager, never in code.
  • Renew OAuth access tokens every 7 days or less and alert on tokens older than 8 days.
  • Request and approve only the OAuth permissions each integration needs, and record them.
  • Disconnect unused applications in My Applications and revoke tokens when people or vendors leave.

Standards and references

Related NHI Mgmt Group resources: Access Tokens vs Refresh Tokens · API Key Management Guide · Secrets Management Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.