Files
2023-03-13 15:00:34 +08:00

13 lines
344 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace JNPF.Extras.CollectiveOAuth.Utils;
public class AuthStateUtils
{
/// <summary>
/// 生成随机state采用https://github.com/lets-mica/mica的UUID工具.
/// </summary>
/// <returns>随机的state字符串.</returns>
public static string createState()
{
return Guid.NewGuid().ToString();
}
}