Skip to main content

git-sync-js / credential

Module: credential

Table of contents

Enumerations

Functions

Functions

credentialOff

credentialOff(directory, remoteName, remoteUrl?, serviceType?): Promise<void>

Add remote without credential

Parameters

NameTypeDefault value
directorystringundefined
remoteNamestringundefined
remoteUrl?stringundefined
serviceTypeGithubServiceType.Github

Returns

Promise<void>

Defined in

src/credential.ts:44


credentialOn

credentialOn(directory, remoteUrl, userName, accessToken, remoteName, serviceType?): Promise<void>

Add remote with credential

Parameters

NameTypeDefault value
directorystringundefined
remoteUrlstringundefined
userNamestringundefined
accessTokenstringundefined
remoteNamestringundefined
serviceTypeGithubServiceType.Github

Returns

Promise<void>

Defined in

src/credential.ts:20


getGitHubUrlWithCredential

getGitHubUrlWithCredential(rawUrl, username, accessToken): string

Parameters

NameType
rawUrlstring
usernamestring
accessTokenstring

Returns

string

Defined in

src/credential.ts:10