mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-10-13 23:30:45 +02:00
identity: simplify user sign up
This commit is contained in:
1 parent
d5790d8785
commit
9ae5db378d
13 files changed
+222
-209
No files matched your search
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text.Json.Serialization;
|
||||
using Streetwriters.Common.Models;
|
||||
|
||||
namespace Streetwriters.Common.Models
|
||||
{
|
||||
public class SignupResponse
|
||||
{
|
||||
[JsonPropertyName("access_token")]
|
||||
public string AccessToken { get; set; }
|
||||
[JsonPropertyName("expires_in")]
|
||||
public int AccessTokenLifetime { get; set; }
|
||||
[JsonPropertyName("refresh_token")]
|
||||
public string RefreshToken { get; set; }
|
||||
[JsonPropertyName("scope")]
|
||||
public string Scope { get; set; }
|
||||
[JsonPropertyName("user_id")]
|
||||
public string UserId { get; set; }
|
||||
public string[]? Errors { get; set; }
|
||||
|
||||
public static SignupResponse Error(IEnumerable<string> errors)
|
||||
{
|
||||
return new SignupResponse
|
||||
{
|
||||
Errors = [.. errors]
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user