Skip to content

Commit 7497edf

Browse files
authored
Merge pull request #464 from ellemouton/changeAccountType
multi: change account session type and reserve type 4
2 parents 908b7aa + 0311de1 commit 7497edf

File tree

5 files changed

+40
-37
lines changed

5 files changed

+40
-37
lines changed

app/src/types/generated/lit-sessions_pb.d.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/types/generated/lit-sessions_pb.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

litrpc/lit-sessions.pb.go

Lines changed: 30 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

litrpc/lit-sessions.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ enum SessionType {
1919
TYPE_MACAROON_ADMIN = 1;
2020
TYPE_MACAROON_CUSTOM = 2;
2121
TYPE_UI_PASSWORD = 3;
22-
TYPE_MACAROON_ACCOUNT = 4;
22+
reserved 4;
23+
TYPE_MACAROON_ACCOUNT = 5;
2324
}
2425

2526
message AddSessionRequest {

session/interface.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ import (
1515
type Type uint8
1616

1717
const (
18-
TypeMacaroonReadonly Type = 0
19-
TypeMacaroonAdmin Type = 1
20-
TypeMacaroonCustom Type = 2
21-
TypeUIPassword Type = 3
22-
TypeMacaroonAccount Type = 4
18+
TypeMacaroonReadonly Type = 0
19+
TypeMacaroonAdmin Type = 1
20+
TypeMacaroonCustom Type = 2
21+
TypeUIPassword Type = 3
22+
typeReservedForFutureUse Type = 4
23+
TypeMacaroonAccount Type = 5
2324
)
2425

2526
// State represents the state of a session.

0 commit comments

Comments
 (0)