backend/app/models/user.rb
def create_auth_token!
    self.auth_token = SecureRandom.base64(50)
    self.save!
    self.auth_token
  end
# Generate a new auth_token and save it.
# It is necessary on front-end authentications.
Generate a new auth_token and save it.
It is necessary on front-end authentications.
Generate a new auth_token and save it . It is necessary on front - end authentications .
def create_auth_token!
    self.auth_token = SecureRandom.base64(50)
    self.save!
    self.auth_token
  end
def create_auth_token! self . auth_token = SecureRandom . base64 ( 50 ) self . save! self . auth_token end
Generate a new auth_token and save it.
Generate a new auth_token and save it .