Skip to content

Instantly share code, notes, and snippets.

@ryanavilar
ryanavilar / AuthController_LoginToken.java
Last active February 21, 2026 05:13
GAM Auth: /get-login-token and /login-with-token endpoints with AuthService
package com.gam.auth;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;