Skip to content

xero partner app migration from oauth1.0 to oauth2.0 (swap tokens).

Notifications You must be signed in to change notification settings

nitin7dc/xero-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xero OAuth1.0a Token Migrator

xero partner app swap oauth1.0 token to oauth2.0 token.

Update environment based on .sample.env file.

    // your oauth1.0 tokens.
    const oauth_token = '';
    const oauth_token_secret = '';
    const oauth_session_handle = '';

    // add all scopes you need here (https://developer.xero.com/documentation/oauth2/scopes)
    const scopes = [
        'offline_access',
        'accounting.settings'
    ];

    const result = await swapTokens({oauth_token, oauth_token_secret, oauth_session_handle, scopes});
    console.log('oauth2.0 token swapped.');
    console.log(result);

About

xero partner app migration from oauth1.0 to oauth2.0 (swap tokens).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published