Skip to content

Commit 807fe59

Browse files
committed
Some Improvements
1 parent 5bda734 commit 807fe59

File tree

6 files changed

+19
-31
lines changed

6 files changed

+19
-31
lines changed

samples/blazor-standalone-wasm/CodeBeam.UltimateAuth.Sample.BlazorStandaloneWasm/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using CodeBeam.UltimateAuth.Client.Blazor.Extensions;
22
using CodeBeam.UltimateAuth.Core.Domain;
3-
using CodeBeam.UltimateAuth.Core.Extensions;
43
using CodeBeam.UltimateAuth.Sample.BlazorStandaloneWasm;
54
using CodeBeam.UltimateAuth.Sample.BlazorStandaloneWasm.Infrastructure;
65
using CodeBeam.UltimateAuth.Sample.BlazorStandaloneWasm.ResourceApi;

src/CodeBeam.UltimateAuth.Core/Contracts/Token/TokenType.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
public enum TokenType
44
{
5-
Opaque,
6-
Jwt,
7-
Unknown
5+
Opaque = 0,
6+
Jwt = 10,
7+
Unknown = 100
88
}

src/CodeBeam.UltimateAuth.Core/Domain/Session/SessionRefreshStatus.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
public enum SessionRefreshStatus
44
{
5-
Success,
6-
ReauthRequired,
7-
InvalidRequest,
8-
Failed
5+
Success = 0,
6+
ReauthRequired = 10,
7+
InvalidRequest = 20,
8+
Failed = 30
99
}

src/CodeBeam.UltimateAuth.Core/Domain/Session/SessionState.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
/// </summary>
77
public enum SessionState
88
{
9-
Active,
10-
Expired,
11-
Revoked,
12-
NotFound,
13-
Invalid,
14-
SecurityMismatch,
15-
DeviceMismatch,
16-
Unsupported
9+
Active = 0,
10+
Expired = 10,
11+
Revoked = 20,
12+
NotFound = 30,
13+
Invalid = 40,
14+
SecurityMismatch = 50,
15+
DeviceMismatch = 60,
16+
Unsupported = 100
1717
}

src/CodeBeam.UltimateAuth.Core/Options/TokenResponseMode.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
public enum TokenResponseMode
44
{
5-
None,
6-
Cookie,
7-
Header,
8-
Body
5+
None = 0,
6+
Cookie = 10,
7+
Header = 20,
8+
Body = 30
99
}

src/CodeBeam.UltimateAuth.Server/Contracts/RefreshTokenStatus.cs

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)