MCPcopy Index your code
hub / github.com/koding/kite / OnTokenExpire

Method OnTokenExpire

client.go:627–631  ·  view source on GitHub ↗

OnTokenExpire adds a callback which is called when client receives token-is-expired error from a remote kite.

(handler func())

Source from the content-addressed store, hash-verified

625// OnTokenExpire adds a callback which is called when client receives
626// token-is-expired error from a remote kite.
627func (c *Client) OnTokenExpire(handler func()) {
628 c.m.Lock()
629 c.onTokenExpireHandlers = append(c.onTokenExpireHandlers, handler)
630 c.m.Unlock()
631}
632
633// OnTokenRenew adds a callback which is called when client successfully
634// renews its token.

Callers 2

installHandlersMethod · 0.80
helloMethod · 0.80

Calls

no outgoing calls

Tested by 1

helloMethod · 0.64