func saveLoginTokenToContext(context *ipv4.ServiceContext, token string) error { // unique is a string identifier which should be locally unique for services // TODO: replace with better unique identifier than IP, if one is available unique := context.IP.String() key := tokenKey(unique) return context.StoreData(key, token) }