Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
All solutions
    • All solutions for IAM
    • Resolving errors when assigning the `resource-manager.clouds.owner` owner role to a cloud user
    • Resolving errors related to invitations to a cloud organization
    • Resolving the `The signature of response or assertion was invalid` error when signing in to a federated account
    • Resolving issues when creating OAuth tokens on behalf of Yandex ID accounts
    • Fixing the `publicAccessBindings` error when moving a cloud across organizations
    • Resolving the `OAuth token is invalid or expired` error
    • Fixing the `Contact your organization administrator for a new invitation` error
    • Resolving the `Service account is not available` error
    • Fixing the `PROHIBITED_BILLING_ACCOUNT_USAGE_STATUS` error
    • Resolving the `Validation failed - access_binding_deltas Number of elements must be in the range of 1 to 1000` error
    • Federated user is not displayed in the organization's user list
    • User does not see an invitation to an organization or `admin` role
    • Unknown user detected in an organization
    • Resolving the `Invalid login` error
    • Resolving the `Forbidden` error when operating under a service account
    • How to delete a cloud
    • How to cancel pending cloud deletion
    • How to change the cloud owner
    • How to change the organization owner
    • How to delete an organization
    • How long a session lasts when authenticating a federated user
    • What minimum role a user requires to access the YC management console

In this article:

  • Issue description
  • Solution
  1. Identity and Access Management
  2. Resolving the `OAuth token is invalid or expired` error

Fixing the OAuth token is invalid or expired error

Written by
Yandex Cloud
Updated at December 17, 2025
View in Markdown
  • Issue description
  • Solution

Issue descriptionIssue description

The OAuth token has expired, causing the OAuth token is invalid or expired error.

SolutionSolution

An OAuth token lives 12 months. Once this time frame is over, the token will not work anymore.

The password or authentication method for the account that owns the token might have changed. For the full list of possible causes of token invalidation, see this Yandex ID article that explains how revoking tokens works.

To get a valid OAuth token, run a request to Yandex OAuth. You will see the token on the page that opens.

For working with the YC CLI, you may want to use a service account through an authorized key. For more details, check out this article on authenticating on behalf of a service account.

Was the article helpful?

Previous
Fixing the `publicAccessBindings` error when moving a cloud across organizations
Next
Fixing the `Contact your organization administrator for a new invitation` error
© 2026 Direct Cursus Technology L.L.C.