diff --git a/examples/server/ruby/app/controllers/auth_controller.rb b/examples/server/ruby/app/controllers/auth_controller.rb index 1fa1d428..2ef72d71 100644 --- a/examples/server/ruby/app/controllers/auth_controller.rb +++ b/examples/server/ruby/app/controllers/auth_controller.rb @@ -36,7 +36,7 @@ def authenticate if @oauth.authorized? @user = User.from_auth(@oauth.formatted_user_data, current_user) if @user - render_success(token: @oauth.access_token, authentication_token: @user.authentication_token, id: @user.id) + render_success(token: Token.encode(@user.id), id: @user.id) else render_error "This #{params[:provider]} account is used already" end @@ -76,4 +76,4 @@ def auth_params params.require(:auth).permit(:email, :password, :displayName) end -end \ No newline at end of file +end