Commit fea3faa040398d9f31e86071fb3aa0aa43b9b5e4

Parents: c29e8445ba25c2aa16b790abb47608bc16b34d1d

From: Moritz Poldrack <git@moritz.sh>
Date: Sat Jan 27 23:51:44 2024 +0700

token: make token implement the fmt.Stringer interface

		

Stats

token.go +5/-0

Changeset

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
diff --git a/token.go b/token.go
index 7d73226e41d36ab4f0bfc6d85a52e4ed6a1639a7..457d50b7f777f201cee654f419b981b7222f155d 100644
--- a/token.go
+++ b/token.go
@@ -148,3 +148,8 @@ 	q.Set("id_token_hint", t.originalIDToken)
 	u.RawQuery = q.Encode()
 	return u.String()
 }
+
+// String returns the initially received ID Token
+func (t *Token) String() string {
+	return fmt.Sprint(t.originalIDToken)
+}