# Auth Service

Auth service manages some elements of the Auth0 auth process, and exposes a number of public facing endpoints for that purpose.

Additionally, this service stores some user metadata.

Although most of the sensitive user metadata is stored in Auth0, some user metadata is stored in a database `user_service`, in table `users`.

These tables aren't in use currently, but will be.

## Run

### Docker

```bash
$ docker build -t auth-service .
$ docker run -p 8080:8080 -e PORT=8080 auth-service
```

### Go

```bash
$ go run main.go rest 
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mediamagic.dev/product-docs/services/auth-service.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
