Skip to content

veb.oauth #

enum TokenPostType #

enum TokenPostType {
	form
	json
}

struct Context #

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

fn (Context) get_token #

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

struct Request #

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