Skip to content

Commit eb082f2

Browse files
Removed checks done on ResponseType String()
There is no need to confirm the value of a type, and it makes it impossible to add additional ResponseType like "id_token"
1 parent 073fe81 commit eb082f2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

const.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ const (
1010
)
1111

1212
func (rt ResponseType) String() string {
13-
if rt == Code ||
14-
rt == Token {
15-
return string(rt)
16-
}
17-
return ""
13+
return string(rt)
1814
}
1915

2016
// GrantType authorization model

0 commit comments

Comments
 (0)