# OAuth with PHP Part Two: refreshing & revoking tokens

DevFeed: [OAuth with PHP Part Two: refreshing & revoking tokens](<https://devfeed.tech/articles/oauth-with-php-part-two-refreshing-revoking-tokens-15784.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/oauth-with-php-part-two-refreshing-revoking-tokens>)

Author: Tristan Sokol

Published: 2017-12-05T17:27:29Z

Content type: tutorial

Language: en

Sources: [Square Corner Blog RSS Feed](<https://devfeed.tech/sources/square-corner-blog-rss-feed.md>)

Topics: [OAuth](<https://devfeed.tech/topics/oauth.md>), [PHP](<https://devfeed.tech/topics/php.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [apis](<https://devfeed.tech/tags/apis.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [oauth](<https://devfeed.tech/tags/oauth.md>), [php](<https://devfeed.tech/tags/php.md>), [tokens](<https://devfeed.tech/tags/tokens.md>)

## AI overview

This tutorial explains how to refresh and revoke Square OAuth access tokens in PHP. It covers token expiration, refreshing credentials without requiring users to reauthorize when permissions remain unchanged, scope changes that require reauthentication, and revoking access.

## Source excerpt

Part 2 on using OAuth tokens with PHP