minor changes
This commit is contained in:
parent
4ecc666d5f
commit
9ee41dda16
7 changed files with 67 additions and 1293 deletions
|
|
@ -238,6 +238,7 @@ namespace Yavsc.Services
|
|||
public async Task<CalendarService> CreateUserCalendarServiceAsync(string userId)
|
||||
{
|
||||
var login = await _dbContext.GetGoogleUserLoginAsync(userId);
|
||||
if (login == null) return null;
|
||||
var token = await _flow.LoadTokenAsync(login.ProviderKey, CancellationToken.None);
|
||||
UserCredential cred = new UserCredential(_flow,login.ProviderKey,token);
|
||||
return new CalendarService(new BaseClientService.Initializer()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue