Skip to content

clerk/django-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run python3 manage.py runserver

From a Clerk frontend, use the useSession hook to retrieve the getToken() function:

const { getToken } = useSession();

Then, request the python server with:

await fetch("http://localhost:8000/clerk_jwt", {
    headers: {
        "Authorization": `Bearer ${await getToken()}`
    }
})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages