src/login_github.php
public function update_oauth_token($new_oauth_token) {
	$mysql = bootstrap::get_library('mysql');
	
	$sql   = "UPDATE `login_github` SET `oauth_token` = '%s' WHERE `id` = %d;";
	$binds = [$new_oauth_token, $this->id];
	$mysql::query($sql, $binds);
}
public function update_oauth_token($new_oauth_token) {
	$mysql = bootstrap::get_library('mysql');
	
	$sql   = "UPDATE `login_github` SET `oauth_token` = '%s' WHERE `id` = %d;";
	$binds = [$new_oauth_token, $this->id];
	$mysql::query($sql, $binds);
}
public function update_oauth_token ( $ new_oauth_token ) { $ mysql = bootstrap :: get_library ( 'mysql' ) ; $ sql = "UPDATE `login_github` SET `oauth_token` = '%s' WHERE `id` = %d;" ; $ binds = [ $ new_oauth_token , $ this -> id ] ; $ mysql :: query ( $ sql , $ binds ) ; }
updates the oauth token for the login

@param  string $new_oauth_token
@return void
updates the oauth token for the login