feat: link fediverse account to existing user
This commit is contained in:
parent
03209e4028
commit
57e1ec09c0
17 changed files with 335 additions and 95 deletions
|
@ -218,10 +218,11 @@ public class AuthService(
|
|||
AuthType authType,
|
||||
string remoteId,
|
||||
string? remoteUsername = null,
|
||||
FediverseApplication? app = null,
|
||||
CancellationToken ct = default
|
||||
)
|
||||
{
|
||||
AssertValidAuthType(authType, null);
|
||||
AssertValidAuthType(authType, app);
|
||||
|
||||
// This is already checked when
|
||||
var currentCount = await db
|
||||
|
@ -237,6 +238,7 @@ public class AuthService(
|
|||
Id = snowflakeGenerator.GenerateSnowflake(),
|
||||
AuthType = authType,
|
||||
RemoteId = remoteId,
|
||||
FediverseApplicationId = app?.Id,
|
||||
RemoteUsername = remoteUsername,
|
||||
UserId = userId,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue