objects/item.rb
# Sets a new API token to the user.
Sets a new API token to the user.
Sets a new API token to the user .
def token_reset
    item = read
    item['token'] = SecureRandom.uuid.gsub(/[^a-f0-9]/, '')
    @aws.put_item(table_name: 'zold-wallets', item: item)
  end
def token_reset item = read item [ 'token' ] = SecureRandom . uuid . gsub ( / [^a-f0-9] / , '' ) @aws . put_item ( table_name : 'zold-wallets' , item : item ) end
Sets a new API token to the user.
Sets a new API token to the user .