// CheckUserToken returns nil if the value is correct, error otherwise
CheckUserToken returns nil if the value is correct, error otherwise
// CheckUserToken returns nil if the value is correct error otherwise
func CheckUserToken(s string) error {
	switch s {
	case UserTokenTypeInvite, UserTokenTypeReset:
		return nil
	}
	return trace.BadParameter("unsupported token type: %v", s)
}
func CheckUserToken ( s string ) error { switch s { case UserTokenTypeInvite , UserTokenTypeReset : return nil } return trace . BadParameter ( " " , s ) }
CheckUserToken returns nil if the value is correct, error otherwise
CheckUserToken returns nil if the value is correct error otherwise