Skip to content

Commit

Permalink
work on linked roles
Browse files Browse the repository at this point in the history
  • Loading branch information
th0mk committed Feb 18, 2025
1 parent 1581253 commit c4dc873
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/FMBot.Persistence.Domain/Models/Users.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public class User
public string TimeZone { get; set; }
public NumberFormat? NumberFormat { get; set; }

public string DiscordAccessToken { get; set; }
public string DiscordRefreshToken { get; set; }
public DateTime? DiscordTokenExpiresAt { get; set; }

public UserDiscogs UserDiscogs { get; set; }
public ICollection<UserDiscogsReleases> DiscogsReleases { get; set; }

Expand Down
22 changes: 22 additions & 0 deletions src/Shared.Domain/Protos/user.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
syntax = "proto3";

option csharp_namespace = "Web.InternalApi";

import "google/protobuf/timestamp.proto";

package user;

service UserOAuthService {
rpc StoreDiscordOAuthToken (StoreDiscordOAuthTokenRequest) returns (StoreDiscordOAuthTokenReply);
}

message StoreDiscordOAuthTokenRequest {
int64 discordUserId = 1;
string accessToken = 2;
string refreshToken = 3;
google.protobuf.Timestamp expiresAt = 4;
}

message StoreDiscordOAuthTokenReply {
bool success = 1;
}

0 comments on commit c4dc873

Please sign in to comment.