I'm not sure we should allow this. If a user attempts to connect to their GitHub account in this case they will see Internal error when storing your token
Logs show
{"level":"dpanic","ts":1616790113.21193,"caller":"[email protected]/sugar.go:191","msg":"Ignored key without a value.","plugin_id":"com.github.mattermost.plugin-circleci","ignored":"crypto/aes: invalid key size 0\ncould not create a cipher block, check key\ngithub.com/mattermost/mattermost-plugin-circleci/server/store.encrypt\n\t/Users/dylanhaussermann/go/src/github.com/mattermost/mattermost-plugin-circleci/server/store/utils.go:34\ngithub.com/mattermost/mattermost-plugin-circleci/server/store.(*Store).StoreTokenForUser\n\t/Users/dylanhaussermann/go/src/github.com/mattermost/mattermost-plugin-circleci/server/store/kv_store.go:37\ngithub.com/mattermost/mattermost-plugin-circleci/server/plugin.(*Plugin).executeAccountConnect\n\t/Users/dylanhaussermann/go/src/github.com/mattermost/mattermost-plugin-circleci/server/plugin/account.go:154\ngithub.com/mattermost/mattermost-plugin-circleci/server/plugin.(*Plugin).executeAccount\n\t/Users/dylanhaussermann/go/src/github.com/mattermost/mattermost-plugin-circleci/server/plugin/account.go:56\ngithub.com/mattermost/mattermost-plugin-circleci/server/plugin.(*Plugin).ExecuteCommand\n\t/Users/dylanhaussermann/go/src/github.com/mattermost/mattermost-plugin-circleci/server/plugin/command.go:222\ngithub.com/mattermost/mattermost-server/v5/plugin.(*hooksRPCServer).ExecuteCommand\n\t/Users/dylanhaussermann/go/pkg/mod/github.com/mattermost/mattermost-server/[email protected]/plugin/client_rpc_generated.go:114\nreflect.Value.call\n\t/usr/local/go/src/reflect/value.go:476\nreflect.Value.Call\n\t/usr/local/go/src/reflect/value.go:337\nnet/rpc.(*service).call\n\t/usr/local/go/src/net/rpc/server.go:377\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371\nError occurred while encrypting access token\ngithub.com/mattermost/mattermost-plugin-circleci/server/store.(*Store).StoreTokenForUser\n\t/Users/dylanhaussermann/go/src/github.com/mattermost/mattermost-plugin-circleci/server/store/kv_store.go:39\ngithub.com/mattermost/mattermost-plugin-circleci/server/plugin.(*Plugin).executeAccountConnect\n\t/Users/dylanhaussermann/go/src/github.com/mattermost/mattermost-plugin-circleci/server/plugin/account.go:154\ngithub.com/mattermost/mattermost-plugin-circleci/server/plugin.(*Plugin).executeAccount\n\t/Users/dylanhaussermann/go/src/github.com/mattermost/mattermost-plugin-circleci/server/plugin/account.go:56\ngithub.com/mattermost/mattermost-plugin-circleci/server/plugin.(*Plugin).ExecuteCommand\n\t/Users/dylanhaussermann/go/src/github.com/mattermost/mattermost-plugin-circleci/server/plugin/command.go:222\ngithub.com/mattermost/mattermost-server/v5/plugin.(*hooksRPCServer).ExecuteCommand\n\t/Users/dylanhaussermann/go/pkg/mod/github.com/mattermost/mattermost-server/[email protected]/plugin/client_rpc_generated.go:114\nreflect.Value.call\n\t/usr/local/go/src/reflect/value.go:476\nreflect.Value.Call\n\t/usr/local/go/src/reflect/value.go:337\nnet/rpc.(*service).call\n\t/usr/local/go/src/net/rpc/server.go:377\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371"}
{"level":"error","ts":1616790113.2118974,"caller":"mlog/sugar.go:25","msg":"Error when storing token","plugin_id":"com.github.mattermost.plugin-circleci"}