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
7
func TestAccountRegistry_AddAccount(t *testing.T) {
8
tests := []struct {
9
-
name string
10
-
initial []AccountInfo
11
-
addDid string
12
-
addHandle string
13
-
addSessionId string
14
-
wantErr error
15
-
wantLen int
16
-
wantSessionId string
17
}{
18
{
19
name: "add first account",
···
6
7
func TestAccountRegistry_AddAccount(t *testing.T) {
8
tests := []struct {
9
+
name string
10
+
initial []AccountInfo
11
+
addDid string
12
+
addHandle string
13
+
addSessionId string
14
+
wantErr error
15
+
wantLen int
16
+
wantSessionId string
17
}{
18
{
19
name: "add first account",
+5
-5
appview/oauth/consts.go
···
1
package oauth
2
3
const (
4
-
SessionName = "appview-session-v2"
5
-
AccountsName = "appview-accounts-v2"
6
-
AuthReturnName = "appview-auth-return"
7
-
AuthReturnURL = "return_url"
8
-
AuthAddAccount = "add_account"
9
SessionHandle = "handle"
10
SessionDid = "did"
11
SessionId = "id"
···
1
package oauth
2
3
const (
4
+
SessionName = "appview-session-v2"
5
+
AccountsName = "appview-accounts-v2"
6
+
AuthReturnName = "appview-auth-return"
7
+
AuthReturnURL = "return_url"
8
+
AuthAddAccount = "add_account"
9
SessionHandle = "handle"
10
SessionDid = "did"
11
SessionId = "id"