Skip to content

Instantly share code, notes, and snippets.

@DavidKlempfner
Created January 6, 2024 02:41
Show Gist options
  • Save DavidKlempfner/eff3120cfde44c93d701021235eade1f to your computer and use it in GitHub Desktop.
Save DavidKlempfner/eff3120cfde44c93d701021235eade1f to your computer and use it in GitHub Desktop.
AuthCodePersistor
namespace AuthCodePersistor.Controllers
{
[ApiController]
[Route("[controller]")]
public class AuthCodePersistor : ControllerBase
{
private static string AuthCode = "";
[HttpGet]
[Route("{authCode}")]
public IActionResult SetAuthCode(string authCode)
{
AuthCode = authCode;
return Ok();
}
[HttpGet]
public IActionResult GetAuthCode()
{
return Ok(AuthCode);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment