Obsidian: Explain callbackForwarder

This commit is contained in:
Mustafa Gezen 2022-11-01 04:49:59 +01:00
parent a15e184cf3
commit 34748f5c33
Signed by untrusted user who does not match committer: mustafa
GPG Key ID: DCDF010D946438C1
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ type NameClaim struct {
Name string `json:"name"`
}
// callbackForwarder helps create an external callback since usual
// OAuth2 providers doesn't allow callback to localhost.
// Cloudflare Workers is a good option for this.
func callbackForwarder(callbackURL string) string {
env := os.Getenv("RESF_ENV")
// this section contained a callback forwarder, but cannot be published