func (s *IdentityService) GetSignupTokens() (tokens []services.SignupToken, err error) {
	keys, err := s.backend.GetKeys(userTokensPath)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	for _, key := range keys {
		token, err := s.GetSignupToken(key)
		if err != nil {
			log.Error(err)
		}
		tokens = append(tokens, *token)
	}
	return tokens, trace.Wrap(err)
}
// GetSignupTokens returns all non-expired user tokens
GetSignupTokens returns all non-expired user tokens
// GetSignupTokens returns all non - expired user tokens
func (s *IdentityService) GetSignupTokens() (tokens []services.SignupToken, err error) {
	keys, err := s.backend.GetKeys(userTokensPath)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	for _, key := range keys {
		token, err := s.GetSignupToken(key)
		if err != nil {
			log.Error(err)
		}
		tokens = append(tokens, *token)
	}
	return tokens, trace.Wrap(err)
}
func ( s * IdentityService ) GetSignupTokens ( ) ( tokens [ ] services . SignupToken , err error ) { keys , err := s . backend . GetKeys ( userTokensPath ) if err != nil { return nil , trace . Wrap ( err ) } for _ , key := range keys { token , err := s . GetSignupToken ( key ) if err != nil { log . Error ( err ) } tokens = append ( tokens , * token ) } return tokens , trace . Wrap ( err ) }
GetSignupTokens returns all non-expired user tokens
GetSignupTokens returns all non - expired user tokens