Files
herolib/aiprompts/v_core/veb/oauth.md
2025-09-02 07:28:13 +02:00

778 B

module oauth

Contents

TokenPostType

enum TokenPostType {
	form
	json
}

[Return to contents]

Context

struct Context {
pub:
	token_url       string
	client_id       string
	client_secret   string
	token_post_type TokenPostType = .form
	redirect_uri    string
}

[Return to contents]

get_token

fn (ctx &Context) get_token(code string) string

[Return to contents]

Request

struct Request {
pub:
	client_id     string
	client_secret string
	code          string
	state         string
}

[Return to contents]

Powered by vdoc. Generated on: 2 Sep 2025 07:17:41