// GetByAccount get the exists token info by userID and clientID
GetByAccount get the exists token info by userID and clientID
// GetByAccount get the exists token info by userID and clientID
func (ts *MgoTokenStore) GetByAccount(userID string, clientID string) (ti oauth2.TokenInfo, err error) {
	ti, err = ts.GetByBson(bson.M{"UserID": userID, "ClientId": clientID})
	if err == nil && ti == nil {
		objectID, err := primitive.ObjectIDFromHex(userID)
		if err != nil {
			ti, err = ts.GetByBson(bson.M{"UserID": objectID, "ClientId": clientID})
		}
	}
	return
}
func ( ts * MgoTokenStore ) GetByAccount ( userID string , clientID string ) ( ti oauth2 . TokenInfo , err error ) { ti , err = ts . GetByBson ( bson . M { " " : userID , " " : clientID } ) if err == nil && ti == nil { objectID , err := primitive . ObjectIDFromHex ( userID ) if err != nil { ti , err = ts . GetByBson ( bson . M { " " : objectID , " " : clientID } ) } } return }
GetByAccount get the exists token info by userID and clientID
GetByAccount get the exists token info by userID and clientID