tangled
alpha
login
or
join now
lewis.moe
/
tangled-core
0
fork
atom
Monorepo for Tangled
0
fork
atom
overview
issues
1
pulls
pipelines
fmt: *
Signed-off-by: oppiliappan <me@oppi.li>
oppiliappan
1 month ago
91a1edd4
cea9f509
+13
-13
2 changed files
expand all
collapse all
unified
split
appview
oauth
accounts_test.go
consts.go
+8
-8
appview/oauth/accounts_test.go
···
6
6
7
7
func TestAccountRegistry_AddAccount(t *testing.T) {
8
8
tests := []struct {
9
9
-
name string
10
10
-
initial []AccountInfo
11
11
-
addDid string
12
12
-
addHandle string
13
13
-
addSessionId string
14
14
-
wantErr error
15
15
-
wantLen int
16
16
-
wantSessionId string
9
9
+
name string
10
10
+
initial []AccountInfo
11
11
+
addDid string
12
12
+
addHandle string
13
13
+
addSessionId string
14
14
+
wantErr error
15
15
+
wantLen int
16
16
+
wantSessionId string
17
17
}{
18
18
{
19
19
name: "add first account",
+5
-5
appview/oauth/consts.go
···
1
1
package oauth
2
2
3
3
const (
4
4
-
SessionName = "appview-session-v2"
5
5
-
AccountsName = "appview-accounts-v2"
6
6
-
AuthReturnName = "appview-auth-return"
7
7
-
AuthReturnURL = "return_url"
8
8
-
AuthAddAccount = "add_account"
4
4
+
SessionName = "appview-session-v2"
5
5
+
AccountsName = "appview-accounts-v2"
6
6
+
AuthReturnName = "appview-auth-return"
7
7
+
AuthReturnURL = "return_url"
8
8
+
AuthAddAccount = "add_account"
9
9
SessionHandle = "handle"
10
10
SessionDid = "did"
11
11
SessionId = "id"