View Source Lightning.Credentials.OauthMigration (Lightning v2.11.1)
Module to migrate OAuth credentials to the new token architecture.
This module handles the migration of credentials with schema 'oauth' to use the new oauth_tokens table while properly handling encryption/decryption through Lightning.Vault.
Summary
Functions
Runs the OAuth credentials migration.
Returns a map with statistics about the migration:
:tokens_created
- Number of new OAuth tokens created:credentials_updated
- Number of credentials updated to reference tokens