SetToken saves an auth token
(token string)
| 150 | |
| 151 | // SetToken saves an auth token |
| 152 | func (d DotRill) SetAccessToken(token string) error { |
| 153 | return d.Set(CredentialsFilename, AccessTokenCredentialsKey, token) |
| 154 | } |
| 155 | |
| 156 | // GetBackupToken loads the original auth token |
| 157 | func (d DotRill) GetBackupToken() (string, error) { |