- basic login button on website frontend - index.html hosting using python - posting google oauth token from javascript on client side - passing token id to python hoster - verifying token, and returning a string to client
		
			
				
	
	
		
			9 lines
		
	
	
		
			275 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			275 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const express = require('express')
 | |
| const path = require('path')
 | |
| const PORT = process.env.PORT || 1234
 | |
| 
 | |
| express()
 | |
|   .use(express.static(path.join(__dirname,'public')))
 | |
|   .get('/', (req, res) => res.render('index'))
 | |
|   .listen(PORT, () => console.log(`Listening on ${ PORT }`))
 |