mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 03:57:32 +00:00
fix: handle various nil pointers (#2473)
This commit is contained in:
@@ -13,6 +13,9 @@ func (c Context) set(name string, value interface{}) {
|
||||
}
|
||||
|
||||
func (c *Context) SetToken(t *oidc.Tokens) *Context {
|
||||
if t == nil {
|
||||
return c
|
||||
}
|
||||
if t.Token != nil && t.Token.AccessToken != "" {
|
||||
c.set("accessToken", t.AccessToken)
|
||||
}
|
||||
|
Reference in New Issue
Block a user